ruby-bullet 0.0.1-x86-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. data/INSTALL.md +22 -0
  2. data/LICENSE +23 -0
  3. data/README.md +39 -0
  4. data/Rakefile +131 -0
  5. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btAxisSweep3.i +30 -0
  6. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btBroadphaseInterface.i +8 -0
  7. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btBroadphaseProxy.i +8 -0
  8. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.i +8 -0
  9. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btDbvt.i +10 -0
  10. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btDbvtBroadphase.i +8 -0
  11. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btDispatcher.i +8 -0
  12. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btMultiSapBroadphase.i +10 -0
  13. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btOverlappingPairCache.i +8 -0
  14. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btOverlappingPairCallback.i +8 -0
  15. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btQuantizedBvh.i +8 -0
  16. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/btSimpleBroadphase.i +8 -0
  17. data/bindings/bullet/interface/BulletCollision/BroadphaseCollision/local_btAxisSweep3Internal.h +191 -0
  18. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/SphereTriangleDetector.i +8 -0
  19. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.i +8 -0
  20. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.i +8 -0
  21. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.i +8 -0
  22. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btBoxBoxDetector.i +8 -0
  23. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btCollisionConfiguration.i +21 -0
  24. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btCollisionCreateFunc.i +8 -0
  25. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btCollisionDispatcher.i +24 -0
  26. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btCollisionObject.i +8 -0
  27. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btCollisionWorld.i +82 -0
  28. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.i +8 -0
  29. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.i +8 -0
  30. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.i +8 -0
  31. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.i +8 -0
  32. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.i +8 -0
  33. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.i +8 -0
  34. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.i +8 -0
  35. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btGhostObject.i +8 -0
  36. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btInternalEdgeUtility.i +8 -0
  37. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btManifoldResult.i +8 -0
  38. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btSimulationIslandManager.i +8 -0
  39. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.i +8 -0
  40. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.i +8 -0
  41. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.i +8 -0
  42. data/bindings/bullet/interface/BulletCollision/CollisionDispatch/btUnionFind.i +10 -0
  43. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btBox2dShape.i +8 -0
  44. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btBoxShape.i +22 -0
  45. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.i +8 -0
  46. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btCapsuleShape.i +8 -0
  47. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btCollisionMargin.i +8 -0
  48. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btCollisionShape.i +8 -0
  49. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btCompoundShape.i +8 -0
  50. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btConcaveShape.i +8 -0
  51. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btConeShape.i +8 -0
  52. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btConvex2dShape.i +8 -0
  53. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btConvexHullShape.i +8 -0
  54. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btConvexInternalShape.i +8 -0
  55. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btConvexPointCloudShape.i +8 -0
  56. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btConvexPolyhedron.i +8 -0
  57. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btConvexShape.i +8 -0
  58. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.i +8 -0
  59. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btCylinderShape.i +8 -0
  60. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btEmptyShape.i +8 -0
  61. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.i +8 -0
  62. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btMaterial.i +8 -0
  63. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btMinkowskiSumShape.i +8 -0
  64. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btMultiSphereShape.i +8 -0
  65. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.i +8 -0
  66. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btOptimizedBvh.i +8 -0
  67. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btPolyhedralConvexShape.i +8 -0
  68. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.i +8 -0
  69. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btShapeHull.i +8 -0
  70. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btSphereShape.i +8 -0
  71. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btStaticPlaneShape.i +8 -0
  72. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btStridingMeshInterface.i +8 -0
  73. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btTetrahedronShape.i +8 -0
  74. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btTriangleBuffer.i +8 -0
  75. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btTriangleCallback.i +8 -0
  76. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.i +8 -0
  77. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.i +8 -0
  78. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btTriangleInfoMap.i +8 -0
  79. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btTriangleMeshShape.i +8 -0
  80. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btTriangleShape.i +8 -0
  81. data/bindings/bullet/interface/BulletCollision/CollisionShapes/btUniformScalingShape.i +8 -0
  82. data/bindings/bullet/interface/BulletCollision/Gimpact/btBoxCollision.i +8 -0
  83. data/bindings/bullet/interface/BulletCollision/Gimpact/btClipPolygon.i +8 -0
  84. data/bindings/bullet/interface/BulletCollision/Gimpact/btContactProcessing.i +8 -0
  85. data/bindings/bullet/interface/BulletCollision/Gimpact/btGImpactBvh.i +8 -0
  86. data/bindings/bullet/interface/BulletCollision/Gimpact/btGImpactCollisionAlgorithm.i +8 -0
  87. data/bindings/bullet/interface/BulletCollision/Gimpact/btGImpactMassUtil.i +8 -0
  88. data/bindings/bullet/interface/BulletCollision/Gimpact/btGImpactQuantizedBvh.i +8 -0
  89. data/bindings/bullet/interface/BulletCollision/Gimpact/btGImpactShape.i +8 -0
  90. data/bindings/bullet/interface/BulletCollision/Gimpact/btGenericPoolAllocator.i +11 -0
  91. data/bindings/bullet/interface/BulletCollision/Gimpact/btGeometryOperations.i +8 -0
  92. data/bindings/bullet/interface/BulletCollision/Gimpact/btQuantization.i +8 -0
  93. data/bindings/bullet/interface/BulletCollision/Gimpact/btTriangleShapeEx.i +8 -0
  94. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.i +8 -0
  95. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btConvexCast.i +8 -0
  96. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btConvexPenetrationDepthSolver.i +8 -0
  97. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.i +11 -0
  98. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.i +8 -0
  99. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btGjkEpa2.i +8 -0
  100. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.i +8 -0
  101. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.i +8 -0
  102. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btManifoldPoint.i +8 -0
  103. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.i +8 -0
  104. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btPersistentManifold.i +8 -0
  105. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btPointCollector.i +8 -0
  106. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btPolyhedralContactClipping.i +8 -0
  107. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btRaycastCallback.i +8 -0
  108. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btSimplexSolverInterface.i +8 -0
  109. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.i +8 -0
  110. data/bindings/bullet/interface/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.i +8 -0
  111. data/bindings/bullet/interface/BulletDynamics/Character/btCharacterControllerInterface.i +8 -0
  112. data/bindings/bullet/interface/BulletDynamics/Character/btKinematicCharacterController.i +8 -0
  113. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btConeTwistConstraint.i +8 -0
  114. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btConstraintSolver.i +8 -0
  115. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btContactConstraint.i +8 -0
  116. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btContactSolverInfo.i +8 -0
  117. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.i +8 -0
  118. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.i +8 -0
  119. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btHinge2Constraint.i +8 -0
  120. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btHingeConstraint.i +8 -0
  121. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btJacobianEntry.i +8 -0
  122. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btPoint2PointConstraint.i +8 -0
  123. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.i +21 -0
  124. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btSliderConstraint.i +8 -0
  125. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.i +8 -0
  126. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btSolverBody.i +8 -0
  127. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btSolverConstraint.i +8 -0
  128. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btTypedConstraint.i +8 -0
  129. data/bindings/bullet/interface/BulletDynamics/ConstraintSolver/btUniversalConstraint.i +8 -0
  130. data/bindings/bullet/interface/BulletDynamics/Dynamics/btActionInterface.i +8 -0
  131. data/bindings/bullet/interface/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.i +23 -0
  132. data/bindings/bullet/interface/BulletDynamics/Dynamics/btDynamicsWorld.i +37 -0
  133. data/bindings/bullet/interface/BulletDynamics/Dynamics/btRigidBody.i +20 -0
  134. data/bindings/bullet/interface/BulletDynamics/Dynamics/btSimpleDynamicsWorld.i +8 -0
  135. data/bindings/bullet/interface/BulletDynamics/Vehicle/btRaycastVehicle.i +12 -0
  136. data/bindings/bullet/interface/BulletDynamics/Vehicle/btVehicleRaycaster.i +8 -0
  137. data/bindings/bullet/interface/BulletDynamics/Vehicle/btWheelInfo.i +8 -0
  138. data/bindings/bullet/interface/BulletSoftBody/btDefaultSoftBodySolver.i +8 -0
  139. data/bindings/bullet/interface/BulletSoftBody/btSoftBody.i +8 -0
  140. data/bindings/bullet/interface/BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.i +8 -0
  141. data/bindings/bullet/interface/BulletSoftBody/btSoftBodyData.i +8 -0
  142. data/bindings/bullet/interface/BulletSoftBody/btSoftBodyHelpers.i +8 -0
  143. data/bindings/bullet/interface/BulletSoftBody/btSoftBodyInternals.i +8 -0
  144. data/bindings/bullet/interface/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.i +8 -0
  145. data/bindings/bullet/interface/BulletSoftBody/btSoftBodySolverVertexBuffer.i +8 -0
  146. data/bindings/bullet/interface/BulletSoftBody/btSoftBodySolvers.i +8 -0
  147. data/bindings/bullet/interface/BulletSoftBody/btSoftRigidCollisionAlgorithm.i +8 -0
  148. data/bindings/bullet/interface/BulletSoftBody/btSoftRigidDynamicsWorld.i +8 -0
  149. data/bindings/bullet/interface/BulletSoftBody/btSoftSoftCollisionAlgorithm.i +8 -0
  150. data/bindings/bullet/interface/BulletSoftBody/btSparseSDF.i +8 -0
  151. data/bindings/bullet/interface/LinearMath/btAabbUtil2.i +8 -0
  152. data/bindings/bullet/interface/LinearMath/btAlignedAllocator.i +8 -0
  153. data/bindings/bullet/interface/LinearMath/btAlignedObjectArray.i +8 -0
  154. data/bindings/bullet/interface/LinearMath/btConvexHull.i +8 -0
  155. data/bindings/bullet/interface/LinearMath/btConvexHullComputer.i +8 -0
  156. data/bindings/bullet/interface/LinearMath/btDefaultMotionState.i +10 -0
  157. data/bindings/bullet/interface/LinearMath/btGeometryUtil.i +10 -0
  158. data/bindings/bullet/interface/LinearMath/btGrahamScan2dConvexHull.i +8 -0
  159. data/bindings/bullet/interface/LinearMath/btHashMap.i +8 -0
  160. data/bindings/bullet/interface/LinearMath/btIDebugDraw.i +10 -0
  161. data/bindings/bullet/interface/LinearMath/btList.i +8 -0
  162. data/bindings/bullet/interface/LinearMath/btMatrix3x3.i +8 -0
  163. data/bindings/bullet/interface/LinearMath/btMinMax.i +8 -0
  164. data/bindings/bullet/interface/LinearMath/btMotionState.i +10 -0
  165. data/bindings/bullet/interface/LinearMath/btPoolAllocator.i +10 -0
  166. data/bindings/bullet/interface/LinearMath/btQuadWord.i +8 -0
  167. data/bindings/bullet/interface/LinearMath/btQuaternion.i +60 -0
  168. data/bindings/bullet/interface/LinearMath/btQuickprof.i +10 -0
  169. data/bindings/bullet/interface/LinearMath/btRandom.i +8 -0
  170. data/bindings/bullet/interface/LinearMath/btScalar.i +8 -0
  171. data/bindings/bullet/interface/LinearMath/btSerializer.i +10 -0
  172. data/bindings/bullet/interface/LinearMath/btStackAlloc.i +10 -0
  173. data/bindings/bullet/interface/LinearMath/btTransform.i +8 -0
  174. data/bindings/bullet/interface/LinearMath/btTransformUtil.i +8 -0
  175. data/bindings/bullet/interface/LinearMath/btVector3.i +42 -0
  176. data/bindings/bullet/interface/Makefile +19 -0
  177. data/bindings/bullet/interface/bullet.i +9 -0
  178. data/bindings/bullet/interface/bullet_all.i +186 -0
  179. data/bindings/bullet/interface/bullet_wrap.cpp +194161 -0
  180. data/bindings/bullet/interface/bullet_wrap.h +106 -0
  181. data/bindings/bullet/interface/bullet_wrap.o +0 -0
  182. data/bindings/bullet/src/TickListener.h +22 -0
  183. data/deps/include/bullet/Bullet-C-Api.h +176 -0
  184. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btAxisSweep3.h +1051 -0
  185. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btBroadphaseInterface.h +82 -0
  186. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btBroadphaseProxy.h +270 -0
  187. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.h +80 -0
  188. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btDbvt.h +1257 -0
  189. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btDbvtBroadphase.h +146 -0
  190. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btDispatcher.h +110 -0
  191. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btMultiSapBroadphase.h +151 -0
  192. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h +469 -0
  193. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btOverlappingPairCallback.h +40 -0
  194. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btQuantizedBvh.h +579 -0
  195. data/deps/include/bullet/BulletCollision/BroadphaseCollision/btSimpleBroadphase.h +171 -0
  196. data/deps/include/bullet/BulletCollision/CollisionDispatch/SphereTriangleDetector.h +51 -0
  197. data/deps/include/bullet/BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.h +36 -0
  198. data/deps/include/bullet/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.h +66 -0
  199. data/deps/include/bullet/BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.h +66 -0
  200. data/deps/include/bullet/BulletCollision/CollisionDispatch/btBoxBoxDetector.h +44 -0
  201. data/deps/include/bullet/BulletCollision/CollisionDispatch/btCollisionConfiguration.h +48 -0
  202. data/deps/include/bullet/BulletCollision/CollisionDispatch/btCollisionCreateFunc.h +45 -0
  203. data/deps/include/bullet/BulletCollision/CollisionDispatch/btCollisionDispatcher.h +172 -0
  204. data/deps/include/bullet/BulletCollision/CollisionDispatch/btCollisionObject.h +524 -0
  205. data/deps/include/bullet/BulletCollision/CollisionDispatch/btCollisionWorld.h +509 -0
  206. data/deps/include/bullet/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.h +86 -0
  207. data/deps/include/bullet/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.h +95 -0
  208. data/deps/include/bullet/BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.h +116 -0
  209. data/deps/include/bullet/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.h +109 -0
  210. data/deps/include/bullet/BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.h +84 -0
  211. data/deps/include/bullet/BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.h +137 -0
  212. data/deps/include/bullet/BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.h +54 -0
  213. data/deps/include/bullet/BulletCollision/CollisionDispatch/btGhostObject.h +175 -0
  214. data/deps/include/bullet/BulletCollision/CollisionDispatch/btInternalEdgeUtility.h +46 -0
  215. data/deps/include/bullet/BulletCollision/CollisionDispatch/btManifoldResult.h +128 -0
  216. data/deps/include/bullet/BulletCollision/CollisionDispatch/btSimulationIslandManager.h +81 -0
  217. data/deps/include/bullet/BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.h +75 -0
  218. data/deps/include/bullet/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.h +66 -0
  219. data/deps/include/bullet/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.h +69 -0
  220. data/deps/include/bullet/BulletCollision/CollisionDispatch/btUnionFind.h +129 -0
  221. data/deps/include/bullet/BulletCollision/CollisionShapes/btBox2dShape.h +369 -0
  222. data/deps/include/bullet/BulletCollision/CollisionShapes/btBoxShape.h +312 -0
  223. data/deps/include/bullet/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h +139 -0
  224. data/deps/include/bullet/BulletCollision/CollisionShapes/btCapsuleShape.h +173 -0
  225. data/deps/include/bullet/BulletCollision/CollisionShapes/btCollisionMargin.h +27 -0
  226. data/deps/include/bullet/BulletCollision/CollisionShapes/btCollisionShape.h +150 -0
  227. data/deps/include/bullet/BulletCollision/CollisionShapes/btCompoundShape.h +212 -0
  228. data/deps/include/bullet/BulletCollision/CollisionShapes/btConcaveShape.h +60 -0
  229. data/deps/include/bullet/BulletCollision/CollisionShapes/btConeShape.h +103 -0
  230. data/deps/include/bullet/BulletCollision/CollisionShapes/btConvex2dShape.h +80 -0
  231. data/deps/include/bullet/BulletCollision/CollisionShapes/btConvexHullShape.h +122 -0
  232. data/deps/include/bullet/BulletCollision/CollisionShapes/btConvexInternalShape.h +224 -0
  233. data/deps/include/bullet/BulletCollision/CollisionShapes/btConvexPointCloudShape.h +105 -0
  234. data/deps/include/bullet/BulletCollision/CollisionShapes/btConvexPolyhedron.h +62 -0
  235. data/deps/include/bullet/BulletCollision/CollisionShapes/btConvexShape.h +84 -0
  236. data/deps/include/bullet/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.h +75 -0
  237. data/deps/include/bullet/BulletCollision/CollisionShapes/btCylinderShape.h +200 -0
  238. data/deps/include/bullet/BulletCollision/CollisionShapes/btEmptyShape.h +70 -0
  239. data/deps/include/bullet/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h +161 -0
  240. data/deps/include/bullet/BulletCollision/CollisionShapes/btMaterial.h +35 -0
  241. data/deps/include/bullet/BulletCollision/CollisionShapes/btMinkowskiSumShape.h +60 -0
  242. data/deps/include/bullet/BulletCollision/CollisionShapes/btMultiSphereShape.h +99 -0
  243. data/deps/include/bullet/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.h +120 -0
  244. data/deps/include/bullet/BulletCollision/CollisionShapes/btOptimizedBvh.h +65 -0
  245. data/deps/include/bullet/BulletCollision/CollisionShapes/btPolyhedralConvexShape.h +112 -0
  246. data/deps/include/bullet/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.h +93 -0
  247. data/deps/include/bullet/BulletCollision/CollisionShapes/btShapeHull.h +59 -0
  248. data/deps/include/bullet/BulletCollision/CollisionShapes/btSphereShape.h +73 -0
  249. data/deps/include/bullet/BulletCollision/CollisionShapes/btStaticPlaneShape.h +103 -0
  250. data/deps/include/bullet/BulletCollision/CollisionShapes/btStridingMeshInterface.h +162 -0
  251. data/deps/include/bullet/BulletCollision/CollisionShapes/btTetrahedronShape.h +74 -0
  252. data/deps/include/bullet/BulletCollision/CollisionShapes/btTriangleBuffer.h +69 -0
  253. data/deps/include/bullet/BulletCollision/CollisionShapes/btTriangleCallback.h +42 -0
  254. data/deps/include/bullet/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.h +133 -0
  255. data/deps/include/bullet/BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.h +84 -0
  256. data/deps/include/bullet/BulletCollision/CollisionShapes/btTriangleInfoMap.h +241 -0
  257. data/deps/include/bullet/BulletCollision/CollisionShapes/btTriangleMesh.h +69 -0
  258. data/deps/include/bullet/BulletCollision/CollisionShapes/btTriangleMeshShape.h +89 -0
  259. data/deps/include/bullet/BulletCollision/CollisionShapes/btTriangleShape.h +182 -0
  260. data/deps/include/bullet/BulletCollision/CollisionShapes/btUniformScalingShape.h +87 -0
  261. data/deps/include/bullet/BulletCollision/Gimpact/btBoxCollision.h +647 -0
  262. data/deps/include/bullet/BulletCollision/Gimpact/btClipPolygon.h +182 -0
  263. data/deps/include/bullet/BulletCollision/Gimpact/btContactProcessing.h +145 -0
  264. data/deps/include/bullet/BulletCollision/Gimpact/btGImpactBvh.h +396 -0
  265. data/deps/include/bullet/BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h +306 -0
  266. data/deps/include/bullet/BulletCollision/Gimpact/btGImpactMassUtil.h +60 -0
  267. data/deps/include/bullet/BulletCollision/Gimpact/btGImpactQuantizedBvh.h +372 -0
  268. data/deps/include/bullet/BulletCollision/Gimpact/btGImpactShape.h +1171 -0
  269. data/deps/include/bullet/BulletCollision/Gimpact/btGenericPoolAllocator.h +163 -0
  270. data/deps/include/bullet/BulletCollision/Gimpact/btGeometryOperations.h +212 -0
  271. data/deps/include/bullet/BulletCollision/Gimpact/btQuantization.h +88 -0
  272. data/deps/include/bullet/BulletCollision/Gimpact/btTriangleShapeEx.h +180 -0
  273. data/deps/include/bullet/BulletCollision/Gimpact/gim_array.h +326 -0
  274. data/deps/include/bullet/BulletCollision/Gimpact/gim_basic_geometry_operations.h +543 -0
  275. data/deps/include/bullet/BulletCollision/Gimpact/gim_bitset.h +123 -0
  276. data/deps/include/bullet/BulletCollision/Gimpact/gim_box_collision.h +590 -0
  277. data/deps/include/bullet/BulletCollision/Gimpact/gim_box_set.h +674 -0
  278. data/deps/include/bullet/BulletCollision/Gimpact/gim_clip_polygon.h +210 -0
  279. data/deps/include/bullet/BulletCollision/Gimpact/gim_contact.h +164 -0
  280. data/deps/include/bullet/BulletCollision/Gimpact/gim_geom_types.h +97 -0
  281. data/deps/include/bullet/BulletCollision/Gimpact/gim_geometry.h +42 -0
  282. data/deps/include/bullet/BulletCollision/Gimpact/gim_hash_table.h +902 -0
  283. data/deps/include/bullet/BulletCollision/Gimpact/gim_linear_math.h +1573 -0
  284. data/deps/include/bullet/BulletCollision/Gimpact/gim_math.h +157 -0
  285. data/deps/include/bullet/BulletCollision/Gimpact/gim_memory.h +190 -0
  286. data/deps/include/bullet/BulletCollision/Gimpact/gim_radixsort.h +406 -0
  287. data/deps/include/bullet/BulletCollision/Gimpact/gim_tri_collision.h +379 -0
  288. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.h +59 -0
  289. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btConvexCast.h +73 -0
  290. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btConvexPenetrationDepthSolver.h +42 -0
  291. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h +91 -0
  292. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.h +50 -0
  293. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btGjkEpa2.h +75 -0
  294. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.h +43 -0
  295. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.h +103 -0
  296. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btManifoldPoint.h +158 -0
  297. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.h +40 -0
  298. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btPersistentManifold.h +228 -0
  299. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btPointCollector.h +64 -0
  300. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btPolyhedralContactClipping.h +46 -0
  301. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btRaycastCallback.h +72 -0
  302. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btSimplexSolverInterface.h +63 -0
  303. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.h +50 -0
  304. data/deps/include/bullet/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h +179 -0
  305. data/deps/include/bullet/BulletCollision/btBulletCollisionCommon.h +69 -0
  306. data/deps/include/bullet/BulletDynamics/Character/btCharacterControllerInterface.h +46 -0
  307. data/deps/include/bullet/BulletDynamics/Character/btKinematicCharacterController.h +163 -0
  308. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btConeTwistConstraint.h +346 -0
  309. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btConstraintSolver.h +52 -0
  310. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btContactConstraint.h +71 -0
  311. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btContactSolverInfo.h +87 -0
  312. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.h +614 -0
  313. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.h +99 -0
  314. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btHinge2Constraint.h +58 -0
  315. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btHingeConstraint.h +381 -0
  316. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btJacobianEntry.h +156 -0
  317. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btPoint2PointConstraint.h +161 -0
  318. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h +130 -0
  319. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btSliderConstraint.h +333 -0
  320. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.h +107 -0
  321. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btSolverBody.h +191 -0
  322. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btSolverConstraint.h +98 -0
  323. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btTypedConstraint.h +452 -0
  324. data/deps/include/bullet/BulletDynamics/ConstraintSolver/btUniversalConstraint.h +62 -0
  325. data/deps/include/bullet/BulletDynamics/Dynamics/btActionInterface.h +46 -0
  326. data/deps/include/bullet/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h +203 -0
  327. data/deps/include/bullet/BulletDynamics/Dynamics/btDynamicsWorld.h +151 -0
  328. data/deps/include/bullet/BulletDynamics/Dynamics/btRigidBody.h +691 -0
  329. data/deps/include/bullet/BulletDynamics/Dynamics/btSimpleDynamicsWorld.h +89 -0
  330. data/deps/include/bullet/BulletDynamics/Vehicle/btRaycastVehicle.h +236 -0
  331. data/deps/include/bullet/BulletDynamics/Vehicle/btVehicleRaycaster.h +35 -0
  332. data/deps/include/bullet/BulletDynamics/Vehicle/btWheelInfo.h +119 -0
  333. data/deps/include/bullet/BulletDynamics/btBulletDynamicsCommon.h +48 -0
  334. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/DX11/btSoftBodySolverBuffer_DX11.h +323 -0
  335. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/DX11/btSoftBodySolverLinkData_DX11.h +103 -0
  336. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/DX11/btSoftBodySolverLinkData_DX11SIMDAware.h +173 -0
  337. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/DX11/btSoftBodySolverTriangleData_DX11.h +96 -0
  338. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/DX11/btSoftBodySolverVertexBuffer_DX11.h +107 -0
  339. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/DX11/btSoftBodySolverVertexData_DX11.h +63 -0
  340. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/DX11/btSoftBodySolver_DX11.h +691 -0
  341. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/DX11/btSoftBodySolver_DX11SIMDAware.h +81 -0
  342. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolverBuffer_OpenCL.h +209 -0
  343. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolverLinkData_OpenCL.h +99 -0
  344. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolverLinkData_OpenCLSIMDAware.h +169 -0
  345. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolverOutputCLtoGL.h +62 -0
  346. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolverTriangleData_OpenCL.h +84 -0
  347. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolverVertexBuffer_OpenGL.h +166 -0
  348. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolverVertexData_OpenCL.h +52 -0
  349. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolver_OpenCL.h +527 -0
  350. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolver_OpenCLSIMDAware.h +81 -0
  351. data/deps/include/bullet/BulletMultiThreaded/GpuSoftBodySolvers/Shared/btSoftBodySolverData.h +748 -0
  352. data/deps/include/bullet/BulletMultiThreaded/HeapManager.h +117 -0
  353. data/deps/include/bullet/BulletMultiThreaded/PlatformDefinitions.h +99 -0
  354. data/deps/include/bullet/BulletMultiThreaded/PosixThreadSupport.h +142 -0
  355. data/deps/include/bullet/BulletMultiThreaded/PpuAddressSpace.h +37 -0
  356. data/deps/include/bullet/BulletMultiThreaded/SequentialThreadSupport.h +96 -0
  357. data/deps/include/bullet/BulletMultiThreaded/SpuCollisionObjectWrapper.h +40 -0
  358. data/deps/include/bullet/BulletMultiThreaded/SpuCollisionTaskProcess.h +163 -0
  359. data/deps/include/bullet/BulletMultiThreaded/SpuContactManifoldCollisionAlgorithm.h +120 -0
  360. data/deps/include/bullet/BulletMultiThreaded/SpuDoubleBuffer.h +126 -0
  361. data/deps/include/bullet/BulletMultiThreaded/SpuFakeDma.h +135 -0
  362. data/deps/include/bullet/BulletMultiThreaded/SpuGatheringCollisionDispatcher.h +72 -0
  363. data/deps/include/bullet/BulletMultiThreaded/SpuLibspe2Support.h +180 -0
  364. data/deps/include/bullet/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/Box.h +167 -0
  365. data/deps/include/bullet/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuCollisionShapes.h +128 -0
  366. data/deps/include/bullet/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuContactResult.h +106 -0
  367. data/deps/include/bullet/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuConvexPenetrationDepthSolver.h +51 -0
  368. data/deps/include/bullet/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h +140 -0
  369. data/deps/include/bullet/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuLocalSupport.h +19 -0
  370. data/deps/include/bullet/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuMinkowskiPenetrationDepthSolver.h +48 -0
  371. data/deps/include/bullet/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuPreferredPenetrationDirections.h +70 -0
  372. data/deps/include/bullet/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/boxBoxDistance.h +65 -0
  373. data/deps/include/bullet/BulletMultiThreaded/SpuSampleTask/SpuSampleTask.h +54 -0
  374. data/deps/include/bullet/BulletMultiThreaded/SpuSampleTaskProcess.h +153 -0
  375. data/deps/include/bullet/BulletMultiThreaded/SpuSync.h +149 -0
  376. data/deps/include/bullet/BulletMultiThreaded/TrbDynBody.h +79 -0
  377. data/deps/include/bullet/BulletMultiThreaded/TrbStateVec.h +339 -0
  378. data/deps/include/bullet/BulletMultiThreaded/Win32ThreadSupport.h +138 -0
  379. data/deps/include/bullet/BulletMultiThreaded/btGpu3DGridBroadphase.h +138 -0
  380. data/deps/include/bullet/BulletMultiThreaded/btGpu3DGridBroadphaseSharedCode.h +430 -0
  381. data/deps/include/bullet/BulletMultiThreaded/btGpu3DGridBroadphaseSharedDefs.h +61 -0
  382. data/deps/include/bullet/BulletMultiThreaded/btGpu3DGridBroadphaseSharedTypes.h +67 -0
  383. data/deps/include/bullet/BulletMultiThreaded/btGpuDefines.h +211 -0
  384. data/deps/include/bullet/BulletMultiThreaded/btGpuUtilsSharedCode.h +55 -0
  385. data/deps/include/bullet/BulletMultiThreaded/btGpuUtilsSharedDefs.h +52 -0
  386. data/deps/include/bullet/BulletMultiThreaded/btParallelConstraintSolver.h +285 -0
  387. data/deps/include/bullet/BulletMultiThreaded/btThreadSupportInterface.h +85 -0
  388. data/deps/include/bullet/BulletMultiThreaded/vectormath2bullet.h +73 -0
  389. data/deps/include/bullet/BulletSoftBody/btDefaultSoftBodySolver.h +63 -0
  390. data/deps/include/bullet/BulletSoftBody/btSoftBody.h +987 -0
  391. data/deps/include/bullet/BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.h +153 -0
  392. data/deps/include/bullet/BulletSoftBody/btSoftBodyData.h +217 -0
  393. data/deps/include/bullet/BulletSoftBody/btSoftBodyHelpers.h +143 -0
  394. data/deps/include/bullet/BulletSoftBody/btSoftBodyInternals.h +930 -0
  395. data/deps/include/bullet/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.h +48 -0
  396. data/deps/include/bullet/BulletSoftBody/btSoftBodySolverVertexBuffer.h +165 -0
  397. data/deps/include/bullet/BulletSoftBody/btSoftBodySolvers.h +154 -0
  398. data/deps/include/bullet/BulletSoftBody/btSoftRigidCollisionAlgorithm.h +75 -0
  399. data/deps/include/bullet/BulletSoftBody/btSoftRigidDynamicsWorld.h +107 -0
  400. data/deps/include/bullet/BulletSoftBody/btSoftSoftCollisionAlgorithm.h +69 -0
  401. data/deps/include/bullet/BulletSoftBody/btSparseSDF.h +306 -0
  402. data/deps/include/bullet/LinearMath/btAabbUtil2.h +236 -0
  403. data/deps/include/bullet/LinearMath/btAlignedAllocator.h +107 -0
  404. data/deps/include/bullet/LinearMath/btAlignedObjectArray.h +494 -0
  405. data/deps/include/bullet/LinearMath/btConvexHull.h +241 -0
  406. data/deps/include/bullet/LinearMath/btConvexHullComputer.h +103 -0
  407. data/deps/include/bullet/LinearMath/btDefaultMotionState.h +40 -0
  408. data/deps/include/bullet/LinearMath/btGeometryUtil.h +42 -0
  409. data/deps/include/bullet/LinearMath/btGrahamScan2dConvexHull.h +110 -0
  410. data/deps/include/bullet/LinearMath/btHashMap.h +450 -0
  411. data/deps/include/bullet/LinearMath/btIDebugDraw.h +418 -0
  412. data/deps/include/bullet/LinearMath/btList.h +73 -0
  413. data/deps/include/bullet/LinearMath/btMatrix3x3.h +771 -0
  414. data/deps/include/bullet/LinearMath/btMinMax.h +71 -0
  415. data/deps/include/bullet/LinearMath/btMotionState.h +40 -0
  416. data/deps/include/bullet/LinearMath/btPoolAllocator.h +121 -0
  417. data/deps/include/bullet/LinearMath/btQuadWord.h +180 -0
  418. data/deps/include/bullet/LinearMath/btQuaternion.h +430 -0
  419. data/deps/include/bullet/LinearMath/btQuickprof.h +203 -0
  420. data/deps/include/bullet/LinearMath/btRandom.h +42 -0
  421. data/deps/include/bullet/LinearMath/btScalar.h +539 -0
  422. data/deps/include/bullet/LinearMath/btSerializer.h +639 -0
  423. data/deps/include/bullet/LinearMath/btStackAlloc.h +116 -0
  424. data/deps/include/bullet/LinearMath/btTransform.h +307 -0
  425. data/deps/include/bullet/LinearMath/btTransformUtil.h +228 -0
  426. data/deps/include/bullet/LinearMath/btVector3.h +766 -0
  427. data/deps/include/bullet/MiniCL/MiniCLTask/MiniCLTask.h +62 -0
  428. data/deps/include/bullet/MiniCL/MiniCLTaskScheduler.h +194 -0
  429. data/deps/include/bullet/MiniCL/cl.h +867 -0
  430. data/deps/include/bullet/MiniCL/cl_MiniCL_Defs.h +439 -0
  431. data/deps/include/bullet/MiniCL/cl_gl.h +113 -0
  432. data/deps/include/bullet/MiniCL/cl_platform.h +254 -0
  433. data/deps/include/bullet/btBulletCollisionCommon.h +69 -0
  434. data/deps/include/bullet/btBulletDynamicsCommon.h +48 -0
  435. data/deps/include/bullet/vectormath/scalar/boolInVec.h +225 -0
  436. data/deps/include/bullet/vectormath/scalar/floatInVec.h +343 -0
  437. data/deps/include/bullet/vectormath/scalar/mat_aos.h +1630 -0
  438. data/deps/include/bullet/vectormath/scalar/quat_aos.h +433 -0
  439. data/deps/include/bullet/vectormath/scalar/vec_aos.h +1426 -0
  440. data/deps/include/bullet/vectormath/scalar/vectormath_aos.h +1872 -0
  441. data/deps/include/bullet/vectormath/sse/boolInVec.h +247 -0
  442. data/deps/include/bullet/vectormath/sse/floatInVec.h +340 -0
  443. data/deps/include/bullet/vectormath/sse/mat_aos.h +2190 -0
  444. data/deps/include/bullet/vectormath/sse/quat_aos.h +579 -0
  445. data/deps/include/bullet/vectormath/sse/vec_aos.h +1455 -0
  446. data/deps/include/bullet/vectormath/sse/vecidx_aos.h +80 -0
  447. data/deps/include/bullet/vectormath/sse/vectormath_aos.h +2547 -0
  448. data/deps/include/bullet/vectormath/vmInclude.h +27 -0
  449. data/deps/lib/libBulletCollision.a +0 -0
  450. data/deps/lib/libBulletDynamics.a +0 -0
  451. data/deps/lib/libBulletMultiThreaded.a +0 -0
  452. data/deps/lib/libBulletSoftBody.a +0 -0
  453. data/deps/lib/libBulletSoftBodySolvers_OpenCL_Mini.a +0 -0
  454. data/deps/lib/libLinearMath.a +0 -0
  455. data/deps/lib/libMiniCL.a +0 -0
  456. data/lib/Bullet.so +0 -0
  457. data/lib/BulletConfig.rb +28 -0
  458. data/lib/Version.rb +5 -0
  459. data/sample/hello_bullet/HelloBullet.rb +144 -0
  460. metadata +504 -0
@@ -0,0 +1,306 @@
1
+ /*
2
+ Bullet Continuous Collision Detection and Physics Library
3
+ Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
4
+
5
+ This software is provided 'as-is', without any express or implied warranty.
6
+ In no event will the authors be held liable for any damages arising from the use of this software.
7
+ Permission is granted to anyone to use this software for any purpose,
8
+ including commercial applications, and to alter it and redistribute it freely,
9
+ subject to the following restrictions:
10
+
11
+ 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.
12
+ 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
13
+ 3. This notice may not be removed or altered from any source distribution.
14
+ */
15
+ ///btSparseSdf implementation by Nathanael Presson
16
+
17
+ #ifndef BT_SPARSE_SDF_H
18
+ #define BT_SPARSE_SDF_H
19
+
20
+ #include "BulletCollision/CollisionDispatch/btCollisionObject.h"
21
+ #include "BulletCollision/NarrowPhaseCollision/btGjkEpa2.h"
22
+
23
+ // Modified Paul Hsieh hash
24
+ template <const int DWORDLEN>
25
+ unsigned int HsiehHash(const void* pdata)
26
+ {
27
+ const unsigned short* data=(const unsigned short*)pdata;
28
+ unsigned hash=DWORDLEN<<2,tmp;
29
+ for(int i=0;i<DWORDLEN;++i)
30
+ {
31
+ hash += data[0];
32
+ tmp = (data[1]<<11)^hash;
33
+ hash = (hash<<16)^tmp;
34
+ data += 2;
35
+ hash += hash>>11;
36
+ }
37
+ hash^=hash<<3;hash+=hash>>5;
38
+ hash^=hash<<4;hash+=hash>>17;
39
+ hash^=hash<<25;hash+=hash>>6;
40
+ return(hash);
41
+ }
42
+
43
+ template <const int CELLSIZE>
44
+ struct btSparseSdf
45
+ {
46
+ //
47
+ // Inner types
48
+ //
49
+ struct IntFrac
50
+ {
51
+ int b;
52
+ int i;
53
+ btScalar f;
54
+ };
55
+ struct Cell
56
+ {
57
+ btScalar d[CELLSIZE+1][CELLSIZE+1][CELLSIZE+1];
58
+ int c[3];
59
+ int puid;
60
+ unsigned hash;
61
+ btCollisionShape* pclient;
62
+ Cell* next;
63
+ };
64
+ //
65
+ // Fields
66
+ //
67
+
68
+ btAlignedObjectArray<Cell*> cells;
69
+ btScalar voxelsz;
70
+ int puid;
71
+ int ncells;
72
+ int nprobes;
73
+ int nqueries;
74
+
75
+ //
76
+ // Methods
77
+ //
78
+
79
+ //
80
+ void Initialize(int hashsize=2383)
81
+ {
82
+ cells.resize(hashsize,0);
83
+ Reset();
84
+ }
85
+ //
86
+ void Reset()
87
+ {
88
+ for(int i=0,ni=cells.size();i<ni;++i)
89
+ {
90
+ Cell* pc=cells[i];
91
+ cells[i]=0;
92
+ while(pc)
93
+ {
94
+ Cell* pn=pc->next;
95
+ delete pc;
96
+ pc=pn;
97
+ }
98
+ }
99
+ voxelsz =0.25;
100
+ puid =0;
101
+ ncells =0;
102
+ nprobes =1;
103
+ nqueries =1;
104
+ }
105
+ //
106
+ void GarbageCollect(int lifetime=256)
107
+ {
108
+ const int life=puid-lifetime;
109
+ for(int i=0;i<cells.size();++i)
110
+ {
111
+ Cell*& root=cells[i];
112
+ Cell* pp=0;
113
+ Cell* pc=root;
114
+ while(pc)
115
+ {
116
+ Cell* pn=pc->next;
117
+ if(pc->puid<life)
118
+ {
119
+ if(pp) pp->next=pn; else root=pn;
120
+ delete pc;pc=pp;--ncells;
121
+ }
122
+ pp=pc;pc=pn;
123
+ }
124
+ }
125
+ //printf("GC[%d]: %d cells, PpQ: %f\r\n",puid,ncells,nprobes/(btScalar)nqueries);
126
+ nqueries=1;
127
+ nprobes=1;
128
+ ++puid; ///@todo: Reset puid's when int range limit is reached */
129
+ /* else setup a priority list... */
130
+ }
131
+ //
132
+ int RemoveReferences(btCollisionShape* pcs)
133
+ {
134
+ int refcount=0;
135
+ for(int i=0;i<cells.size();++i)
136
+ {
137
+ Cell*& root=cells[i];
138
+ Cell* pp=0;
139
+ Cell* pc=root;
140
+ while(pc)
141
+ {
142
+ Cell* pn=pc->next;
143
+ if(pc->pclient==pcs)
144
+ {
145
+ if(pp) pp->next=pn; else root=pn;
146
+ delete pc;pc=pp;++refcount;
147
+ }
148
+ pp=pc;pc=pn;
149
+ }
150
+ }
151
+ return(refcount);
152
+ }
153
+ //
154
+ btScalar Evaluate( const btVector3& x,
155
+ btCollisionShape* shape,
156
+ btVector3& normal,
157
+ btScalar margin)
158
+ {
159
+ /* Lookup cell */
160
+ const btVector3 scx=x/voxelsz;
161
+ const IntFrac ix=Decompose(scx.x());
162
+ const IntFrac iy=Decompose(scx.y());
163
+ const IntFrac iz=Decompose(scx.z());
164
+ const unsigned h=Hash(ix.b,iy.b,iz.b,shape);
165
+ Cell*& root=cells[static_cast<int>(h%cells.size())];
166
+ Cell* c=root;
167
+ ++nqueries;
168
+ while(c)
169
+ {
170
+ ++nprobes;
171
+ if( (c->hash==h) &&
172
+ (c->c[0]==ix.b) &&
173
+ (c->c[1]==iy.b) &&
174
+ (c->c[2]==iz.b) &&
175
+ (c->pclient==shape))
176
+ { break; }
177
+ else
178
+ { c=c->next; }
179
+ }
180
+ if(!c)
181
+ {
182
+ ++nprobes;
183
+ ++ncells;
184
+ c=new Cell();
185
+ c->next=root;root=c;
186
+ c->pclient=shape;
187
+ c->hash=h;
188
+ c->c[0]=ix.b;c->c[1]=iy.b;c->c[2]=iz.b;
189
+ BuildCell(*c);
190
+ }
191
+ c->puid=puid;
192
+ /* Extract infos */
193
+ const int o[]={ ix.i,iy.i,iz.i};
194
+ const btScalar d[]={ c->d[o[0]+0][o[1]+0][o[2]+0],
195
+ c->d[o[0]+1][o[1]+0][o[2]+0],
196
+ c->d[o[0]+1][o[1]+1][o[2]+0],
197
+ c->d[o[0]+0][o[1]+1][o[2]+0],
198
+ c->d[o[0]+0][o[1]+0][o[2]+1],
199
+ c->d[o[0]+1][o[1]+0][o[2]+1],
200
+ c->d[o[0]+1][o[1]+1][o[2]+1],
201
+ c->d[o[0]+0][o[1]+1][o[2]+1]};
202
+ /* Normal */
203
+ #if 1
204
+ const btScalar gx[]={ d[1]-d[0],d[2]-d[3],
205
+ d[5]-d[4],d[6]-d[7]};
206
+ const btScalar gy[]={ d[3]-d[0],d[2]-d[1],
207
+ d[7]-d[4],d[6]-d[5]};
208
+ const btScalar gz[]={ d[4]-d[0],d[5]-d[1],
209
+ d[7]-d[3],d[6]-d[2]};
210
+ normal.setX(Lerp( Lerp(gx[0],gx[1],iy.f),
211
+ Lerp(gx[2],gx[3],iy.f),iz.f));
212
+ normal.setY(Lerp( Lerp(gy[0],gy[1],ix.f),
213
+ Lerp(gy[2],gy[3],ix.f),iz.f));
214
+ normal.setZ(Lerp( Lerp(gz[0],gz[1],ix.f),
215
+ Lerp(gz[2],gz[3],ix.f),iy.f));
216
+ normal = normal.normalized();
217
+ #else
218
+ normal = btVector3(d[1]-d[0],d[3]-d[0],d[4]-d[0]).normalized();
219
+ #endif
220
+ /* Distance */
221
+ const btScalar d0=Lerp(Lerp(d[0],d[1],ix.f),
222
+ Lerp(d[3],d[2],ix.f),iy.f);
223
+ const btScalar d1=Lerp(Lerp(d[4],d[5],ix.f),
224
+ Lerp(d[7],d[6],ix.f),iy.f);
225
+ return(Lerp(d0,d1,iz.f)-margin);
226
+ }
227
+ //
228
+ void BuildCell(Cell& c)
229
+ {
230
+ const btVector3 org=btVector3( (btScalar)c.c[0],
231
+ (btScalar)c.c[1],
232
+ (btScalar)c.c[2]) *
233
+ CELLSIZE*voxelsz;
234
+ for(int k=0;k<=CELLSIZE;++k)
235
+ {
236
+ const btScalar z=voxelsz*k+org.z();
237
+ for(int j=0;j<=CELLSIZE;++j)
238
+ {
239
+ const btScalar y=voxelsz*j+org.y();
240
+ for(int i=0;i<=CELLSIZE;++i)
241
+ {
242
+ const btScalar x=voxelsz*i+org.x();
243
+ c.d[i][j][k]=DistanceToShape( btVector3(x,y,z),
244
+ c.pclient);
245
+ }
246
+ }
247
+ }
248
+ }
249
+ //
250
+ static inline btScalar DistanceToShape(const btVector3& x,
251
+ btCollisionShape* shape)
252
+ {
253
+ btTransform unit;
254
+ unit.setIdentity();
255
+ if(shape->isConvex())
256
+ {
257
+ btGjkEpaSolver2::sResults res;
258
+ btConvexShape* csh=static_cast<btConvexShape*>(shape);
259
+ return(btGjkEpaSolver2::SignedDistance(x,0,csh,unit,res));
260
+ }
261
+ return(0);
262
+ }
263
+ //
264
+ static inline IntFrac Decompose(btScalar x)
265
+ {
266
+ /* That one need a lot of improvements... */
267
+ /* Remove test, faster floor... */
268
+ IntFrac r;
269
+ x/=CELLSIZE;
270
+ const int o=x<0?(int)(-x+1):0;
271
+ x+=o;r.b=(int)x;
272
+ const btScalar k=(x-r.b)*CELLSIZE;
273
+ r.i=(int)k;r.f=k-r.i;r.b-=o;
274
+ return(r);
275
+ }
276
+ //
277
+ static inline btScalar Lerp(btScalar a,btScalar b,btScalar t)
278
+ {
279
+ return(a+(b-a)*t);
280
+ }
281
+
282
+
283
+
284
+ //
285
+ static inline unsigned int Hash(int x,int y,int z,btCollisionShape* shape)
286
+ {
287
+ struct btS
288
+ {
289
+ int x,y,z;
290
+ void* p;
291
+ };
292
+
293
+ btS myset;
294
+
295
+ myset.x=x;myset.y=y;myset.z=z;myset.p=shape;
296
+ const void* ptr = &myset;
297
+
298
+ unsigned int result = HsiehHash<sizeof(btS)/4> (ptr);
299
+
300
+
301
+ return result;
302
+ }
303
+ };
304
+
305
+
306
+ #endif //BT_SPARSE_SDF_H
@@ -0,0 +1,236 @@
1
+ /*
2
+ Copyright (c) 2003-2006 Gino van den Bergen / Erwin Coumans http://continuousphysics.com/Bullet/
3
+
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
+
10
+ 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.
11
+ 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
12
+ 3. This notice may not be removed or altered from any source distribution.
13
+ */
14
+
15
+
16
+
17
+ #ifndef BT_AABB_UTIL2
18
+ #define BT_AABB_UTIL2
19
+
20
+ #include "btTransform.h"
21
+ #include "btVector3.h"
22
+ #include "btMinMax.h"
23
+
24
+
25
+
26
+ SIMD_FORCE_INLINE void AabbExpand (btVector3& aabbMin,
27
+ btVector3& aabbMax,
28
+ const btVector3& expansionMin,
29
+ const btVector3& expansionMax)
30
+ {
31
+ aabbMin = aabbMin + expansionMin;
32
+ aabbMax = aabbMax + expansionMax;
33
+ }
34
+
35
+ /// conservative test for overlap between two aabbs
36
+ SIMD_FORCE_INLINE bool TestPointAgainstAabb2(const btVector3 &aabbMin1, const btVector3 &aabbMax1,
37
+ const btVector3 &point)
38
+ {
39
+ bool overlap = true;
40
+ overlap = (aabbMin1.getX() > point.getX() || aabbMax1.getX() < point.getX()) ? false : overlap;
41
+ overlap = (aabbMin1.getZ() > point.getZ() || aabbMax1.getZ() < point.getZ()) ? false : overlap;
42
+ overlap = (aabbMin1.getY() > point.getY() || aabbMax1.getY() < point.getY()) ? false : overlap;
43
+ return overlap;
44
+ }
45
+
46
+
47
+ /// conservative test for overlap between two aabbs
48
+ SIMD_FORCE_INLINE bool TestAabbAgainstAabb2(const btVector3 &aabbMin1, const btVector3 &aabbMax1,
49
+ const btVector3 &aabbMin2, const btVector3 &aabbMax2)
50
+ {
51
+ bool overlap = true;
52
+ overlap = (aabbMin1.getX() > aabbMax2.getX() || aabbMax1.getX() < aabbMin2.getX()) ? false : overlap;
53
+ overlap = (aabbMin1.getZ() > aabbMax2.getZ() || aabbMax1.getZ() < aabbMin2.getZ()) ? false : overlap;
54
+ overlap = (aabbMin1.getY() > aabbMax2.getY() || aabbMax1.getY() < aabbMin2.getY()) ? false : overlap;
55
+ return overlap;
56
+ }
57
+
58
+ /// conservative test for overlap between triangle and aabb
59
+ SIMD_FORCE_INLINE bool TestTriangleAgainstAabb2(const btVector3 *vertices,
60
+ const btVector3 &aabbMin, const btVector3 &aabbMax)
61
+ {
62
+ const btVector3 &p1 = vertices[0];
63
+ const btVector3 &p2 = vertices[1];
64
+ const btVector3 &p3 = vertices[2];
65
+
66
+ if (btMin(btMin(p1[0], p2[0]), p3[0]) > aabbMax[0]) return false;
67
+ if (btMax(btMax(p1[0], p2[0]), p3[0]) < aabbMin[0]) return false;
68
+
69
+ if (btMin(btMin(p1[2], p2[2]), p3[2]) > aabbMax[2]) return false;
70
+ if (btMax(btMax(p1[2], p2[2]), p3[2]) < aabbMin[2]) return false;
71
+
72
+ if (btMin(btMin(p1[1], p2[1]), p3[1]) > aabbMax[1]) return false;
73
+ if (btMax(btMax(p1[1], p2[1]), p3[1]) < aabbMin[1]) return false;
74
+ return true;
75
+ }
76
+
77
+
78
+ SIMD_FORCE_INLINE int btOutcode(const btVector3& p,const btVector3& halfExtent)
79
+ {
80
+ return (p.getX() < -halfExtent.getX() ? 0x01 : 0x0) |
81
+ (p.getX() > halfExtent.getX() ? 0x08 : 0x0) |
82
+ (p.getY() < -halfExtent.getY() ? 0x02 : 0x0) |
83
+ (p.getY() > halfExtent.getY() ? 0x10 : 0x0) |
84
+ (p.getZ() < -halfExtent.getZ() ? 0x4 : 0x0) |
85
+ (p.getZ() > halfExtent.getZ() ? 0x20 : 0x0);
86
+ }
87
+
88
+
89
+
90
+ SIMD_FORCE_INLINE bool btRayAabb2(const btVector3& rayFrom,
91
+ const btVector3& rayInvDirection,
92
+ const unsigned int raySign[3],
93
+ const btVector3 bounds[2],
94
+ btScalar& tmin,
95
+ btScalar lambda_min,
96
+ btScalar lambda_max)
97
+ {
98
+ btScalar tmax, tymin, tymax, tzmin, tzmax;
99
+ tmin = (bounds[raySign[0]].getX() - rayFrom.getX()) * rayInvDirection.getX();
100
+ tmax = (bounds[1-raySign[0]].getX() - rayFrom.getX()) * rayInvDirection.getX();
101
+ tymin = (bounds[raySign[1]].getY() - rayFrom.getY()) * rayInvDirection.getY();
102
+ tymax = (bounds[1-raySign[1]].getY() - rayFrom.getY()) * rayInvDirection.getY();
103
+
104
+ if ( (tmin > tymax) || (tymin > tmax) )
105
+ return false;
106
+
107
+ if (tymin > tmin)
108
+ tmin = tymin;
109
+
110
+ if (tymax < tmax)
111
+ tmax = tymax;
112
+
113
+ tzmin = (bounds[raySign[2]].getZ() - rayFrom.getZ()) * rayInvDirection.getZ();
114
+ tzmax = (bounds[1-raySign[2]].getZ() - rayFrom.getZ()) * rayInvDirection.getZ();
115
+
116
+ if ( (tmin > tzmax) || (tzmin > tmax) )
117
+ return false;
118
+ if (tzmin > tmin)
119
+ tmin = tzmin;
120
+ if (tzmax < tmax)
121
+ tmax = tzmax;
122
+ return ( (tmin < lambda_max) && (tmax > lambda_min) );
123
+ }
124
+
125
+ SIMD_FORCE_INLINE bool btRayAabb(const btVector3& rayFrom,
126
+ const btVector3& rayTo,
127
+ const btVector3& aabbMin,
128
+ const btVector3& aabbMax,
129
+ btScalar& param, btVector3& normal)
130
+ {
131
+ btVector3 aabbHalfExtent = (aabbMax-aabbMin)* btScalar(0.5);
132
+ btVector3 aabbCenter = (aabbMax+aabbMin)* btScalar(0.5);
133
+ btVector3 source = rayFrom - aabbCenter;
134
+ btVector3 target = rayTo - aabbCenter;
135
+ int sourceOutcode = btOutcode(source,aabbHalfExtent);
136
+ int targetOutcode = btOutcode(target,aabbHalfExtent);
137
+ if ((sourceOutcode & targetOutcode) == 0x0)
138
+ {
139
+ btScalar lambda_enter = btScalar(0.0);
140
+ btScalar lambda_exit = param;
141
+ btVector3 r = target - source;
142
+ int i;
143
+ btScalar normSign = 1;
144
+ btVector3 hitNormal(0,0,0);
145
+ int bit=1;
146
+
147
+ for (int j=0;j<2;j++)
148
+ {
149
+ for (i = 0; i != 3; ++i)
150
+ {
151
+ if (sourceOutcode & bit)
152
+ {
153
+ btScalar lambda = (-source[i] - aabbHalfExtent[i]*normSign) / r[i];
154
+ if (lambda_enter <= lambda)
155
+ {
156
+ lambda_enter = lambda;
157
+ hitNormal.setValue(0,0,0);
158
+ hitNormal[i] = normSign;
159
+ }
160
+ }
161
+ else if (targetOutcode & bit)
162
+ {
163
+ btScalar lambda = (-source[i] - aabbHalfExtent[i]*normSign) / r[i];
164
+ btSetMin(lambda_exit, lambda);
165
+ }
166
+ bit<<=1;
167
+ }
168
+ normSign = btScalar(-1.);
169
+ }
170
+ if (lambda_enter <= lambda_exit)
171
+ {
172
+ param = lambda_enter;
173
+ normal = hitNormal;
174
+ return true;
175
+ }
176
+ }
177
+ return false;
178
+ }
179
+
180
+
181
+
182
+ SIMD_FORCE_INLINE void btTransformAabb(const btVector3& halfExtents, btScalar margin,const btTransform& t,btVector3& aabbMinOut,btVector3& aabbMaxOut)
183
+ {
184
+ btVector3 halfExtentsWithMargin = halfExtents+btVector3(margin,margin,margin);
185
+ btMatrix3x3 abs_b = t.getBasis().absolute();
186
+ btVector3 center = t.getOrigin();
187
+ btVector3 extent = btVector3(abs_b[0].dot(halfExtentsWithMargin),
188
+ abs_b[1].dot(halfExtentsWithMargin),
189
+ abs_b[2].dot(halfExtentsWithMargin));
190
+ aabbMinOut = center - extent;
191
+ aabbMaxOut = center + extent;
192
+ }
193
+
194
+
195
+ SIMD_FORCE_INLINE void btTransformAabb(const btVector3& localAabbMin,const btVector3& localAabbMax, btScalar margin,const btTransform& trans,btVector3& aabbMinOut,btVector3& aabbMaxOut)
196
+ {
197
+ btAssert(localAabbMin.getX() <= localAabbMax.getX());
198
+ btAssert(localAabbMin.getY() <= localAabbMax.getY());
199
+ btAssert(localAabbMin.getZ() <= localAabbMax.getZ());
200
+ btVector3 localHalfExtents = btScalar(0.5)*(localAabbMax-localAabbMin);
201
+ localHalfExtents+=btVector3(margin,margin,margin);
202
+
203
+ btVector3 localCenter = btScalar(0.5)*(localAabbMax+localAabbMin);
204
+ btMatrix3x3 abs_b = trans.getBasis().absolute();
205
+ btVector3 center = trans(localCenter);
206
+ btVector3 extent = btVector3(abs_b[0].dot(localHalfExtents),
207
+ abs_b[1].dot(localHalfExtents),
208
+ abs_b[2].dot(localHalfExtents));
209
+ aabbMinOut = center-extent;
210
+ aabbMaxOut = center+extent;
211
+ }
212
+
213
+ #define USE_BANCHLESS 1
214
+ #ifdef USE_BANCHLESS
215
+ //This block replaces the block below and uses no branches, and replaces the 8 bit return with a 32 bit return for improved performance (~3x on XBox 360)
216
+ SIMD_FORCE_INLINE unsigned testQuantizedAabbAgainstQuantizedAabb(const unsigned short int* aabbMin1,const unsigned short int* aabbMax1,const unsigned short int* aabbMin2,const unsigned short int* aabbMax2)
217
+ {
218
+ return static_cast<unsigned int>(btSelect((unsigned)((aabbMin1[0] <= aabbMax2[0]) & (aabbMax1[0] >= aabbMin2[0])
219
+ & (aabbMin1[2] <= aabbMax2[2]) & (aabbMax1[2] >= aabbMin2[2])
220
+ & (aabbMin1[1] <= aabbMax2[1]) & (aabbMax1[1] >= aabbMin2[1])),
221
+ 1, 0));
222
+ }
223
+ #else
224
+ SIMD_FORCE_INLINE bool testQuantizedAabbAgainstQuantizedAabb(const unsigned short int* aabbMin1,const unsigned short int* aabbMax1,const unsigned short int* aabbMin2,const unsigned short int* aabbMax2)
225
+ {
226
+ bool overlap = true;
227
+ overlap = (aabbMin1[0] > aabbMax2[0] || aabbMax1[0] < aabbMin2[0]) ? false : overlap;
228
+ overlap = (aabbMin1[2] > aabbMax2[2] || aabbMax1[2] < aabbMin2[2]) ? false : overlap;
229
+ overlap = (aabbMin1[1] > aabbMax2[1] || aabbMax1[1] < aabbMin2[1]) ? false : overlap;
230
+ return overlap;
231
+ }
232
+ #endif //USE_BANCHLESS
233
+
234
+ #endif //BT_AABB_UTIL2
235
+
236
+
@@ -0,0 +1,107 @@
1
+ /*
2
+ Bullet Continuous Collision Detection and Physics Library
3
+ Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
4
+
5
+ This software is provided 'as-is', without any express or implied warranty.
6
+ In no event will the authors be held liable for any damages arising from the use of this software.
7
+ Permission is granted to anyone to use this software for any purpose,
8
+ including commercial applications, and to alter it and redistribute it freely,
9
+ subject to the following restrictions:
10
+
11
+ 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.
12
+ 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
13
+ 3. This notice may not be removed or altered from any source distribution.
14
+ */
15
+
16
+ #ifndef BT_ALIGNED_ALLOCATOR
17
+ #define BT_ALIGNED_ALLOCATOR
18
+
19
+ ///we probably replace this with our own aligned memory allocator
20
+ ///so we replace _aligned_malloc and _aligned_free with our own
21
+ ///that is better portable and more predictable
22
+
23
+ #include "btScalar.h"
24
+ //#define BT_DEBUG_MEMORY_ALLOCATIONS 1
25
+ #ifdef BT_DEBUG_MEMORY_ALLOCATIONS
26
+
27
+ #define btAlignedAlloc(a,b) \
28
+ btAlignedAllocInternal(a,b,__LINE__,__FILE__)
29
+
30
+ #define btAlignedFree(ptr) \
31
+ btAlignedFreeInternal(ptr,__LINE__,__FILE__)
32
+
33
+ void* btAlignedAllocInternal (size_t size, int alignment,int line,char* filename);
34
+
35
+ void btAlignedFreeInternal (void* ptr,int line,char* filename);
36
+
37
+ #else
38
+ void* btAlignedAllocInternal (size_t size, int alignment);
39
+ void btAlignedFreeInternal (void* ptr);
40
+
41
+ #define btAlignedAlloc(size,alignment) btAlignedAllocInternal(size,alignment)
42
+ #define btAlignedFree(ptr) btAlignedFreeInternal(ptr)
43
+
44
+ #endif
45
+ typedef int size_type;
46
+
47
+ typedef void *(btAlignedAllocFunc)(size_t size, int alignment);
48
+ typedef void (btAlignedFreeFunc)(void *memblock);
49
+ typedef void *(btAllocFunc)(size_t size);
50
+ typedef void (btFreeFunc)(void *memblock);
51
+
52
+ ///The developer can let all Bullet memory allocations go through a custom memory allocator, using btAlignedAllocSetCustom
53
+ void btAlignedAllocSetCustom(btAllocFunc *allocFunc, btFreeFunc *freeFunc);
54
+ ///If the developer has already an custom aligned allocator, then btAlignedAllocSetCustomAligned can be used. The default aligned allocator pre-allocates extra memory using the non-aligned allocator, and instruments it.
55
+ void btAlignedAllocSetCustomAligned(btAlignedAllocFunc *allocFunc, btAlignedFreeFunc *freeFunc);
56
+
57
+
58
+ ///The btAlignedAllocator is a portable class for aligned memory allocations.
59
+ ///Default implementations for unaligned and aligned allocations can be overridden by a custom allocator using btAlignedAllocSetCustom and btAlignedAllocSetCustomAligned.
60
+ template < typename T , unsigned Alignment >
61
+ class btAlignedAllocator {
62
+
63
+ typedef btAlignedAllocator< T , Alignment > self_type;
64
+
65
+ public:
66
+
67
+ //just going down a list:
68
+ btAlignedAllocator() {}
69
+ /*
70
+ btAlignedAllocator( const self_type & ) {}
71
+ */
72
+
73
+ template < typename Other >
74
+ btAlignedAllocator( const btAlignedAllocator< Other , Alignment > & ) {}
75
+
76
+ typedef const T* const_pointer;
77
+ typedef const T& const_reference;
78
+ typedef T* pointer;
79
+ typedef T& reference;
80
+ typedef T value_type;
81
+
82
+ pointer address ( reference ref ) const { return &ref; }
83
+ const_pointer address ( const_reference ref ) const { return &ref; }
84
+ pointer allocate ( size_type n , const_pointer * hint = 0 ) {
85
+ (void)hint;
86
+ return reinterpret_cast< pointer >(btAlignedAlloc( sizeof(value_type) * n , Alignment ));
87
+ }
88
+ void construct ( pointer ptr , const value_type & value ) { new (ptr) value_type( value ); }
89
+ void deallocate( pointer ptr ) {
90
+ btAlignedFree( reinterpret_cast< void * >( ptr ) );
91
+ }
92
+ void destroy ( pointer ptr ) { ptr->~value_type(); }
93
+
94
+
95
+ template < typename O > struct rebind {
96
+ typedef btAlignedAllocator< O , Alignment > other;
97
+ };
98
+ template < typename O >
99
+ self_type & operator=( const btAlignedAllocator< O , Alignment > & ) { return *this; }
100
+
101
+ friend bool operator==( const self_type & , const self_type & ) { return true; }
102
+ };
103
+
104
+
105
+
106
+ #endif //BT_ALIGNED_ALLOCATOR
107
+