Changeset 2430 for code/branches/physics/src/bullet/BulletCollision/CollisionDispatch/btCollisionObject.h
- Timestamp:
- Dec 13, 2008, 11:45:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/BulletCollision/CollisionDispatch/btCollisionObject.h
r2192 r2430 30 30 #include "LinearMath/btMotionState.h" 31 31 #include "LinearMath/btAlignedAllocator.h" 32 32 #include "LinearMath/btAlignedObjectArray.h" 33 34 35 typedef btAlignedObjectArray<class btCollisionObject*> btCollisionObjectArray; 33 36 34 37 … … 72 75 void* m_userObjectPointer; 73 76 74 ///m_internalType is reserved to distinguish Bullet's btCollisionObject, btRigidBody, btSoftBody etc.77 ///m_internalType is reserved to distinguish Bullet's btCollisionObject, btRigidBody, btSoftBody, btGhostObject etc. 75 78 ///do not assign your own m_internalType unless you write a new dynamics object class. 76 79 int m_internalType; … … 104 107 CF_KINEMATIC_OBJECT= 2, 105 108 CF_NO_CONTACT_RESPONSE = 4, 106 CF_CUSTOM_MATERIAL_CALLBACK = 8//this allows per-triangle material (friction/restitution) 109 CF_CUSTOM_MATERIAL_CALLBACK = 8,//this allows per-triangle material (friction/restitution) 110 CF_CHARACTER_OBJECT = 16 107 111 }; 108 112 … … 111 115 CO_COLLISION_OBJECT =1, 112 116 CO_RIGID_BODY, 113 CO_SOFT_BODY 117 CO_SOFT_BODY, 118 ///CO_GHOST_OBJECT keeps track of all objects overlapping its AABB and that pass its collision filter 119 ///It is useful for collision sensors, explosion objects, character controller etc. 120 CO_GHOST_OBJECT 114 121 }; 115 122 … … 177 184 } 178 185 179 int getActivationState() const { return m_activationState1;}186 SIMD_FORCE_INLINE int getActivationState() const { return m_activationState1;} 180 187 181 188 void setActivationState(int newState); … … 194 201 void activate(bool forceActivation = false); 195 202 196 inlinebool isActive() const203 SIMD_FORCE_INLINE bool isActive() const 197 204 { 198 205 return ((getActivationState() != ISLAND_SLEEPING) && (getActivationState() != DISABLE_SIMULATION)); … … 238 245 239 246 240 btBroadphaseProxy* getBroadphaseHandle()247 SIMD_FORCE_INLINE btBroadphaseProxy* getBroadphaseHandle() 241 248 { 242 249 return m_broadphaseHandle; 243 250 } 244 251 245 const btBroadphaseProxy* getBroadphaseHandle() const252 SIMD_FORCE_INLINE const btBroadphaseProxy* getBroadphaseHandle() const 246 253 { 247 254 return m_broadphaseHandle; … … 289 296 } 290 297 291 constint getIslandTag() const298 SIMD_FORCE_INLINE int getIslandTag() const 292 299 { 293 300 return m_islandTag1; … … 299 306 } 300 307 301 constint getCompanionId() const308 SIMD_FORCE_INLINE int getCompanionId() const 302 309 { 303 310 return m_companionId; … … 309 316 } 310 317 311 constbtScalar getHitFraction() const318 SIMD_FORCE_INLINE btScalar getHitFraction() const 312 319 { 313 320 return m_hitFraction; … … 320 327 321 328 322 constint getCollisionFlags() const329 SIMD_FORCE_INLINE int getCollisionFlags() const 323 330 { 324 331 return m_collisionFlags;
Note: See TracChangeset
for help on using the changeset viewer.