btCollisionObject.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. /*
  2. Bullet Continuous Collision Detection and Physics Library
  3. Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
  4. This software is provided 'as-is', without any express or implied warranty.
  5. In no event will the authors be held liable for any damages arising from the use of this software.
  6. Permission is granted to anyone to use this software for any purpose,
  7. including commercial applications, and to alter it and redistribute it freely,
  8. subject to the following restrictions:
  9. 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  10. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  11. 3. This notice may not be removed or altered from any source distribution.
  12. */
  13. #ifndef BT_COLLISION_OBJECT_H
  14. #define BT_COLLISION_OBJECT_H
  15. #include "LinearMath/btTransform.h"
  16. //island management, m_activationState1
  17. #define ACTIVE_TAG 1
  18. #define ISLAND_SLEEPING 2
  19. #define WANTS_DEACTIVATION 3
  20. #define DISABLE_DEACTIVATION 4
  21. #define DISABLE_SIMULATION 5
  22. struct btBroadphaseProxy;
  23. class btCollisionShape;
  24. struct btCollisionShapeData;
  25. #include "LinearMath/btMotionState.h"
  26. #include "LinearMath/btAlignedAllocator.h"
  27. #include "LinearMath/btAlignedObjectArray.h"
  28. typedef btAlignedObjectArray<class btCollisionObject*> btCollisionObjectArray;
  29. #ifdef BT_USE_DOUBLE_PRECISION
  30. #define btCollisionObjectData btCollisionObjectDoubleData
  31. #define btCollisionObjectDataName "btCollisionObjectDoubleData"
  32. #else
  33. #define btCollisionObjectData btCollisionObjectFloatData
  34. #define btCollisionObjectDataName "btCollisionObjectFloatData"
  35. #endif
  36. /// btCollisionObject can be used to manage collision detection objects.
  37. /// btCollisionObject maintains all information that is needed for a collision detection: Shape, Transform and AABB proxy.
  38. /// They can be added to the btCollisionWorld.
  39. ATTRIBUTE_ALIGNED16(class)
  40. btCollisionObject
  41. {
  42. protected:
  43. btTransform m_worldTransform;
  44. ///m_interpolationWorldTransform is used for CCD and interpolation
  45. ///it can be either previous or future (predicted) transform
  46. btTransform m_interpolationWorldTransform;
  47. //those two are experimental: just added for bullet time effect, so you can still apply impulses (directly modifying velocities)
  48. //without destroying the continuous interpolated motion (which uses this interpolation velocities)
  49. btVector3 m_interpolationLinearVelocity;
  50. btVector3 m_interpolationAngularVelocity;
  51. btVector3 m_anisotropicFriction;
  52. int m_hasAnisotropicFriction;
  53. btScalar m_contactProcessingThreshold;
  54. btBroadphaseProxy* m_broadphaseHandle;
  55. btCollisionShape* m_collisionShape;
  56. ///m_extensionPointer is used by some internal low-level Bullet extensions.
  57. void* m_extensionPointer;
  58. ///m_rootCollisionShape is temporarily used to store the original collision shape
  59. ///The m_collisionShape might be temporarily replaced by a child collision shape during collision detection purposes
  60. ///If it is NULL, the m_collisionShape is not temporarily replaced.
  61. btCollisionShape* m_rootCollisionShape;
  62. int m_collisionFlags;
  63. int m_islandTag1;
  64. int m_companionId;
  65. int m_worldArrayIndex; // index of object in world's collisionObjects array
  66. mutable int m_activationState1;
  67. mutable btScalar m_deactivationTime;
  68. btScalar m_friction;
  69. btScalar m_restitution;
  70. btScalar m_rollingFriction; //torsional friction orthogonal to contact normal (useful to stop spheres rolling forever)
  71. btScalar m_spinningFriction; // torsional friction around the contact normal (useful for grasping)
  72. btScalar m_contactDamping;
  73. btScalar m_contactStiffness;
  74. ///m_internalType is reserved to distinguish Bullet's btCollisionObject, btRigidBody, btSoftBody, btGhostObject etc.
  75. ///do not assign your own m_internalType unless you write a new dynamics object class.
  76. int m_internalType;
  77. ///users can point to their objects, m_userPointer is not used by Bullet, see setUserPointer/getUserPointer
  78. void* m_userObjectPointer;
  79. int m_userIndex2;
  80. int m_userIndex;
  81. ///time of impact calculation
  82. btScalar m_hitFraction;
  83. ///Swept sphere radius (0.0 by default), see btConvexConvexAlgorithm::
  84. btScalar m_ccdSweptSphereRadius;
  85. /// Don't do continuous collision detection if the motion (in one step) is less then m_ccdMotionThreshold
  86. btScalar m_ccdMotionThreshold;
  87. /// If some object should have elaborate collision filtering by sub-classes
  88. int m_checkCollideWith;
  89. btAlignedObjectArray<const btCollisionObject*> m_objectsWithoutCollisionCheck;
  90. ///internal update revision number. It will be increased when the object changes. This allows some subsystems to perform lazy evaluation.
  91. int m_updateRevision;
  92. btVector3 m_customDebugColorRGB;
  93. public:
  94. BT_DECLARE_ALIGNED_ALLOCATOR();
  95. enum CollisionFlags
  96. {
  97. CF_STATIC_OBJECT = 1,
  98. CF_KINEMATIC_OBJECT = 2,
  99. CF_NO_CONTACT_RESPONSE = 4,
  100. CF_CUSTOM_MATERIAL_CALLBACK = 8, //this allows per-triangle material (friction/restitution)
  101. CF_CHARACTER_OBJECT = 16,
  102. CF_DISABLE_VISUALIZE_OBJECT = 32, //disable debug drawing
  103. CF_DISABLE_SPU_COLLISION_PROCESSING = 64, //disable parallel/SPU processing
  104. CF_HAS_CONTACT_STIFFNESS_DAMPING = 128,
  105. CF_HAS_CUSTOM_DEBUG_RENDERING_COLOR = 256,
  106. CF_HAS_FRICTION_ANCHOR = 512,
  107. CF_HAS_COLLISION_SOUND_TRIGGER = 1024
  108. };
  109. enum CollisionObjectTypes
  110. {
  111. CO_COLLISION_OBJECT = 1,
  112. CO_RIGID_BODY = 2,
  113. ///CO_GHOST_OBJECT keeps track of all objects overlapping its AABB and that pass its collision filter
  114. ///It is useful for collision sensors, explosion objects, character controller etc.
  115. CO_GHOST_OBJECT = 4,
  116. CO_SOFT_BODY = 8,
  117. CO_HF_FLUID = 16,
  118. CO_USER_TYPE = 32,
  119. CO_FEATHERSTONE_LINK = 64
  120. };
  121. enum AnisotropicFrictionFlags
  122. {
  123. CF_ANISOTROPIC_FRICTION_DISABLED = 0,
  124. CF_ANISOTROPIC_FRICTION = 1,
  125. CF_ANISOTROPIC_ROLLING_FRICTION = 2
  126. };
  127. SIMD_FORCE_INLINE bool mergesSimulationIslands() const
  128. {
  129. ///static objects, kinematic and object without contact response don't merge islands
  130. return ((m_collisionFlags & (CF_STATIC_OBJECT | CF_KINEMATIC_OBJECT | CF_NO_CONTACT_RESPONSE)) == 0);
  131. }
  132. const btVector3& getAnisotropicFriction() const
  133. {
  134. return m_anisotropicFriction;
  135. }
  136. void setAnisotropicFriction(const btVector3& anisotropicFriction, int frictionMode = CF_ANISOTROPIC_FRICTION)
  137. {
  138. m_anisotropicFriction = anisotropicFriction;
  139. bool isUnity = (anisotropicFriction[0] != 1.f) || (anisotropicFriction[1] != 1.f) || (anisotropicFriction[2] != 1.f);
  140. m_hasAnisotropicFriction = isUnity ? frictionMode : 0;
  141. }
  142. bool hasAnisotropicFriction(int frictionMode = CF_ANISOTROPIC_FRICTION) const
  143. {
  144. return (m_hasAnisotropicFriction & frictionMode) != 0;
  145. }
  146. ///the constraint solver can discard solving contacts, if the distance is above this threshold. 0 by default.
  147. ///Note that using contacts with positive distance can improve stability. It increases, however, the chance of colliding with degerate contacts, such as 'interior' triangle edges
  148. void setContactProcessingThreshold(btScalar contactProcessingThreshold)
  149. {
  150. m_contactProcessingThreshold = contactProcessingThreshold;
  151. }
  152. btScalar getContactProcessingThreshold() const
  153. {
  154. return m_contactProcessingThreshold;
  155. }
  156. SIMD_FORCE_INLINE bool isStaticObject() const
  157. {
  158. return (m_collisionFlags & CF_STATIC_OBJECT) != 0;
  159. }
  160. SIMD_FORCE_INLINE bool isKinematicObject() const
  161. {
  162. return (m_collisionFlags & CF_KINEMATIC_OBJECT) != 0;
  163. }
  164. SIMD_FORCE_INLINE bool isStaticOrKinematicObject() const
  165. {
  166. return (m_collisionFlags & (CF_KINEMATIC_OBJECT | CF_STATIC_OBJECT)) != 0;
  167. }
  168. SIMD_FORCE_INLINE bool hasContactResponse() const
  169. {
  170. return (m_collisionFlags & CF_NO_CONTACT_RESPONSE) == 0;
  171. }
  172. btCollisionObject();
  173. virtual ~btCollisionObject();
  174. virtual void setCollisionShape(btCollisionShape * collisionShape)
  175. {
  176. m_updateRevision++;
  177. m_collisionShape = collisionShape;
  178. m_rootCollisionShape = collisionShape;
  179. }
  180. SIMD_FORCE_INLINE const btCollisionShape* getCollisionShape() const
  181. {
  182. return m_collisionShape;
  183. }
  184. SIMD_FORCE_INLINE btCollisionShape* getCollisionShape()
  185. {
  186. return m_collisionShape;
  187. }
  188. void setIgnoreCollisionCheck(const btCollisionObject* co, bool ignoreCollisionCheck)
  189. {
  190. if (ignoreCollisionCheck)
  191. {
  192. //We don't check for duplicates. Is it ok to leave that up to the user of this API?
  193. //int index = m_objectsWithoutCollisionCheck.findLinearSearch(co);
  194. //if (index == m_objectsWithoutCollisionCheck.size())
  195. //{
  196. m_objectsWithoutCollisionCheck.push_back(co);
  197. //}
  198. }
  199. else
  200. {
  201. m_objectsWithoutCollisionCheck.remove(co);
  202. }
  203. m_checkCollideWith = m_objectsWithoutCollisionCheck.size() > 0;
  204. }
  205. virtual bool checkCollideWithOverride(const btCollisionObject* co) const
  206. {
  207. int index = m_objectsWithoutCollisionCheck.findLinearSearch(co);
  208. if (index < m_objectsWithoutCollisionCheck.size())
  209. {
  210. return false;
  211. }
  212. return true;
  213. }
  214. ///Avoid using this internal API call, the extension pointer is used by some Bullet extensions.
  215. ///If you need to store your own user pointer, use 'setUserPointer/getUserPointer' instead.
  216. void* internalGetExtensionPointer() const
  217. {
  218. return m_extensionPointer;
  219. }
  220. ///Avoid using this internal API call, the extension pointer is used by some Bullet extensions
  221. ///If you need to store your own user pointer, use 'setUserPointer/getUserPointer' instead.
  222. void internalSetExtensionPointer(void* pointer)
  223. {
  224. m_extensionPointer = pointer;
  225. }
  226. SIMD_FORCE_INLINE int getActivationState() const { return m_activationState1; }
  227. void setActivationState(int newState) const;
  228. void setDeactivationTime(btScalar time)
  229. {
  230. m_deactivationTime = time;
  231. }
  232. btScalar getDeactivationTime() const
  233. {
  234. return m_deactivationTime;
  235. }
  236. void forceActivationState(int newState) const;
  237. void activate(bool forceActivation = false) const;
  238. SIMD_FORCE_INLINE bool isActive() const
  239. {
  240. return ((getActivationState() != ISLAND_SLEEPING) && (getActivationState() != DISABLE_SIMULATION));
  241. }
  242. void setRestitution(btScalar rest)
  243. {
  244. m_updateRevision++;
  245. m_restitution = rest;
  246. }
  247. btScalar getRestitution() const
  248. {
  249. return m_restitution;
  250. }
  251. void setFriction(btScalar frict)
  252. {
  253. m_updateRevision++;
  254. m_friction = frict;
  255. }
  256. btScalar getFriction() const
  257. {
  258. return m_friction;
  259. }
  260. void setRollingFriction(btScalar frict)
  261. {
  262. m_updateRevision++;
  263. m_rollingFriction = frict;
  264. }
  265. btScalar getRollingFriction() const
  266. {
  267. return m_rollingFriction;
  268. }
  269. void setSpinningFriction(btScalar frict)
  270. {
  271. m_updateRevision++;
  272. m_spinningFriction = frict;
  273. }
  274. btScalar getSpinningFriction() const
  275. {
  276. return m_spinningFriction;
  277. }
  278. void setContactStiffnessAndDamping(btScalar stiffness, btScalar damping)
  279. {
  280. m_updateRevision++;
  281. m_contactStiffness = stiffness;
  282. m_contactDamping = damping;
  283. m_collisionFlags |= CF_HAS_CONTACT_STIFFNESS_DAMPING;
  284. //avoid divisions by zero...
  285. if (m_contactStiffness < SIMD_EPSILON)
  286. {
  287. m_contactStiffness = SIMD_EPSILON;
  288. }
  289. }
  290. btScalar getContactStiffness() const
  291. {
  292. return m_contactStiffness;
  293. }
  294. btScalar getContactDamping() const
  295. {
  296. return m_contactDamping;
  297. }
  298. ///reserved for Bullet internal usage
  299. int getInternalType() const
  300. {
  301. return m_internalType;
  302. }
  303. btTransform& getWorldTransform()
  304. {
  305. return m_worldTransform;
  306. }
  307. const btTransform& getWorldTransform() const
  308. {
  309. return m_worldTransform;
  310. }
  311. void setWorldTransform(const btTransform& worldTrans)
  312. {
  313. m_updateRevision++;
  314. m_worldTransform = worldTrans;
  315. }
  316. SIMD_FORCE_INLINE btBroadphaseProxy* getBroadphaseHandle()
  317. {
  318. return m_broadphaseHandle;
  319. }
  320. SIMD_FORCE_INLINE const btBroadphaseProxy* getBroadphaseHandle() const
  321. {
  322. return m_broadphaseHandle;
  323. }
  324. void setBroadphaseHandle(btBroadphaseProxy * handle)
  325. {
  326. m_broadphaseHandle = handle;
  327. }
  328. const btTransform& getInterpolationWorldTransform() const
  329. {
  330. return m_interpolationWorldTransform;
  331. }
  332. btTransform& getInterpolationWorldTransform()
  333. {
  334. return m_interpolationWorldTransform;
  335. }
  336. void setInterpolationWorldTransform(const btTransform& trans)
  337. {
  338. m_updateRevision++;
  339. m_interpolationWorldTransform = trans;
  340. }
  341. void setInterpolationLinearVelocity(const btVector3& linvel)
  342. {
  343. m_updateRevision++;
  344. m_interpolationLinearVelocity = linvel;
  345. }
  346. void setInterpolationAngularVelocity(const btVector3& angvel)
  347. {
  348. m_updateRevision++;
  349. m_interpolationAngularVelocity = angvel;
  350. }
  351. const btVector3& getInterpolationLinearVelocity() const
  352. {
  353. return m_interpolationLinearVelocity;
  354. }
  355. const btVector3& getInterpolationAngularVelocity() const
  356. {
  357. return m_interpolationAngularVelocity;
  358. }
  359. SIMD_FORCE_INLINE int getIslandTag() const
  360. {
  361. return m_islandTag1;
  362. }
  363. void setIslandTag(int tag)
  364. {
  365. m_islandTag1 = tag;
  366. }
  367. SIMD_FORCE_INLINE int getCompanionId() const
  368. {
  369. return m_companionId;
  370. }
  371. void setCompanionId(int id)
  372. {
  373. m_companionId = id;
  374. }
  375. SIMD_FORCE_INLINE int getWorldArrayIndex() const
  376. {
  377. return m_worldArrayIndex;
  378. }
  379. // only should be called by CollisionWorld
  380. void setWorldArrayIndex(int ix)
  381. {
  382. m_worldArrayIndex = ix;
  383. }
  384. SIMD_FORCE_INLINE btScalar getHitFraction() const
  385. {
  386. return m_hitFraction;
  387. }
  388. void setHitFraction(btScalar hitFraction)
  389. {
  390. m_hitFraction = hitFraction;
  391. }
  392. SIMD_FORCE_INLINE int getCollisionFlags() const
  393. {
  394. return m_collisionFlags;
  395. }
  396. void setCollisionFlags(int flags)
  397. {
  398. m_collisionFlags = flags;
  399. }
  400. ///Swept sphere radius (0.0 by default), see btConvexConvexAlgorithm::
  401. btScalar getCcdSweptSphereRadius() const
  402. {
  403. return m_ccdSweptSphereRadius;
  404. }
  405. ///Swept sphere radius (0.0 by default), see btConvexConvexAlgorithm::
  406. void setCcdSweptSphereRadius(btScalar radius)
  407. {
  408. m_ccdSweptSphereRadius = radius;
  409. }
  410. btScalar getCcdMotionThreshold() const
  411. {
  412. return m_ccdMotionThreshold;
  413. }
  414. btScalar getCcdSquareMotionThreshold() const
  415. {
  416. return m_ccdMotionThreshold * m_ccdMotionThreshold;
  417. }
  418. /// Don't do continuous collision detection if the motion (in one step) is less then m_ccdMotionThreshold
  419. void setCcdMotionThreshold(btScalar ccdMotionThreshold)
  420. {
  421. m_ccdMotionThreshold = ccdMotionThreshold;
  422. }
  423. ///users can point to their objects, userPointer is not used by Bullet
  424. void* getUserPointer() const
  425. {
  426. return m_userObjectPointer;
  427. }
  428. int getUserIndex() const
  429. {
  430. return m_userIndex;
  431. }
  432. int getUserIndex2() const
  433. {
  434. return m_userIndex2;
  435. }
  436. ///users can point to their objects, userPointer is not used by Bullet
  437. void setUserPointer(void* userPointer)
  438. {
  439. m_userObjectPointer = userPointer;
  440. }
  441. ///users can point to their objects, userPointer is not used by Bullet
  442. void setUserIndex(int index)
  443. {
  444. m_userIndex = index;
  445. }
  446. void setUserIndex2(int index)
  447. {
  448. m_userIndex2 = index;
  449. }
  450. int getUpdateRevisionInternal() const
  451. {
  452. return m_updateRevision;
  453. }
  454. void setCustomDebugColor(const btVector3& colorRGB)
  455. {
  456. m_customDebugColorRGB = colorRGB;
  457. m_collisionFlags |= CF_HAS_CUSTOM_DEBUG_RENDERING_COLOR;
  458. }
  459. void removeCustomDebugColor()
  460. {
  461. m_collisionFlags &= ~CF_HAS_CUSTOM_DEBUG_RENDERING_COLOR;
  462. }
  463. bool getCustomDebugColor(btVector3 & colorRGB) const
  464. {
  465. bool hasCustomColor = (0 != (m_collisionFlags & CF_HAS_CUSTOM_DEBUG_RENDERING_COLOR));
  466. if (hasCustomColor)
  467. {
  468. colorRGB = m_customDebugColorRGB;
  469. }
  470. return hasCustomColor;
  471. }
  472. inline bool checkCollideWith(const btCollisionObject* co) const
  473. {
  474. if (m_checkCollideWith)
  475. return checkCollideWithOverride(co);
  476. return true;
  477. }
  478. virtual int calculateSerializeBufferSize() const;
  479. ///fills the dataBuffer and returns the struct name (and 0 on failure)
  480. virtual const char* serialize(void* dataBuffer, class btSerializer* serializer) const;
  481. virtual void serializeSingleObject(class btSerializer * serializer) const;
  482. };
  483. // clang-format off
  484. ///do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
  485. struct btCollisionObjectDoubleData
  486. {
  487. void *m_broadphaseHandle;
  488. void *m_collisionShape;
  489. btCollisionShapeData *m_rootCollisionShape;
  490. char *m_name;
  491. btTransformDoubleData m_worldTransform;
  492. btTransformDoubleData m_interpolationWorldTransform;
  493. btVector3DoubleData m_interpolationLinearVelocity;
  494. btVector3DoubleData m_interpolationAngularVelocity;
  495. btVector3DoubleData m_anisotropicFriction;
  496. double m_contactProcessingThreshold;
  497. double m_deactivationTime;
  498. double m_friction;
  499. double m_rollingFriction;
  500. double m_contactDamping;
  501. double m_contactStiffness;
  502. double m_restitution;
  503. double m_hitFraction;
  504. double m_ccdSweptSphereRadius;
  505. double m_ccdMotionThreshold;
  506. int m_hasAnisotropicFriction;
  507. int m_collisionFlags;
  508. int m_islandTag1;
  509. int m_companionId;
  510. int m_activationState1;
  511. int m_internalType;
  512. int m_checkCollideWith;
  513. int m_collisionFilterGroup;
  514. int m_collisionFilterMask;
  515. int m_uniqueId;//m_uniqueId is introduced for paircache. could get rid of this, by calculating the address offset etc.
  516. };
  517. ///do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
  518. struct btCollisionObjectFloatData
  519. {
  520. void *m_broadphaseHandle;
  521. void *m_collisionShape;
  522. btCollisionShapeData *m_rootCollisionShape;
  523. char *m_name;
  524. btTransformFloatData m_worldTransform;
  525. btTransformFloatData m_interpolationWorldTransform;
  526. btVector3FloatData m_interpolationLinearVelocity;
  527. btVector3FloatData m_interpolationAngularVelocity;
  528. btVector3FloatData m_anisotropicFriction;
  529. float m_contactProcessingThreshold;
  530. float m_deactivationTime;
  531. float m_friction;
  532. float m_rollingFriction;
  533. float m_contactDamping;
  534. float m_contactStiffness;
  535. float m_restitution;
  536. float m_hitFraction;
  537. float m_ccdSweptSphereRadius;
  538. float m_ccdMotionThreshold;
  539. int m_hasAnisotropicFriction;
  540. int m_collisionFlags;
  541. int m_islandTag1;
  542. int m_companionId;
  543. int m_activationState1;
  544. int m_internalType;
  545. int m_checkCollideWith;
  546. int m_collisionFilterGroup;
  547. int m_collisionFilterMask;
  548. int m_uniqueId;
  549. };
  550. // clang-format on
  551. SIMD_FORCE_INLINE int btCollisionObject::calculateSerializeBufferSize() const
  552. {
  553. return sizeof(btCollisionObjectData);
  554. }
  555. #endif //BT_COLLISION_OBJECT_H