Bullet Collision Detection & Physics Library
btCollisionObjectWrapper.h
Go to the documentation of this file.
1 #ifndef BT_COLLISION_OBJECT_WRAPPER_H
2 #define BT_COLLISION_OBJECT_WRAPPER_H
3 
6 class btCollisionShape;
8 class btTransform;
9 #include "LinearMath/btScalar.h" // for SIMD_FORCE_INLINE definition
10 
11 #define BT_DECLARE_STACK_ONLY_OBJECT \
12  private: \
13  void* operator new(size_t size); \
14  void operator delete(void*);
15 
18 {
20 
21 private:
22  btCollisionObjectWrapper(const btCollisionObjectWrapper&); // not implemented. Not allowed.
24 
25 public:
30  int m_partId;
31  int m_index;
32 
33  btCollisionObjectWrapper(const btCollisionObjectWrapper* parent, const btCollisionShape* shape, const btCollisionObject* collisionObject, const btTransform& worldTransform, int partId, int index)
34  : m_parent(parent), m_shape(shape), m_collisionObject(collisionObject), m_worldTransform(worldTransform),
35  m_partId(partId), m_index(index)
36  {}
37 
41 };
42 
43 #endif //BT_COLLISION_OBJECT_WRAPPER_H
btCollisionObjectWrapper(const btCollisionObjectWrapper &)
The btCollisionShape class provides an interface for collision shapes that can be shared among btColl...
#define SIMD_FORCE_INLINE
Definition: btScalar.h:63
btCollisionObjectWrapper(const btCollisionObjectWrapper *parent, const btCollisionShape *shape, const btCollisionObject *collisionObject, const btTransform &worldTransform, int partId, int index)
btCollisionObjectWrapper * operator=(const btCollisionObjectWrapper &)
const btCollisionShape * m_shape
const btTransform & getWorldTransform() const
btCollisionObject can be used to manage collision detection objects.
const btCollisionObject * m_collisionObject
const btCollisionShape * getCollisionShape() const
The btTransform class supports rigid transforms with only translation and rotation and no scaling/she...
Definition: btTransform.h:34
const btTransform & m_worldTransform
const btCollisionObjectWrapper * m_parent
#define BT_DECLARE_STACK_ONLY_OBJECT
const btCollisionObject * getCollisionObject() const