/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/ |
btConvexConvexAlgorithm.cpp | 62 btVector3& ptsVector, 63 btVector3& offsetA, 64 btVector3& offsetB, 66 const btVector3& translation, 67 const btVector3& dirA, btScalar hlenA, 68 const btVector3& dirB, btScalar hlenB ) 118 btVector3& normalOnB, 119 btVector3& pointOnB, 130 btVector3 directionA = transformA.getBasis().getColumn(capsuleAxisA); 131 btVector3 translationA = transformA.getOrigin() [all...] |
btSphereBoxCollisionAlgorithm.cpp | 62 btVector3 pOnBox; 64 btVector3 normalOnSurfaceB; 66 btVector3 sphereCenter = sphereObjWrap->getWorldTransform().getOrigin(); 101 bool btSphereBoxCollisionAlgorithm::getSphereDistance(const btCollisionObjectWrapper* boxObjWrap, btVector3& pointOnBox, btVector3& normal, btScalar& penetrationDepth, const btVector3& sphereCenter, btScalar fRadius, btScalar maxContactDistance ) 104 btVector3 const &boxHalfExtent = boxShape->getHalfExtentsWithoutMargin(); 110 btVector3 sphereRelPos = m44T.invXform(sphereCenter); 113 btVector3 closestPoint = sphereRelPos; 150 btVector3 tmp = m44T(pointOnBox) [all...] |
btBox2dBox2dCollisionAlgorithm.cpp | 17 ///The modifications include: switching from b2Vec to btVector3, redefinition of b2Dot, b2Cross 86 btVector3 v; 96 #define btCrossS(a,s) btVector3(s * a.getY(), -s * a.getX(),0.f) 101 const btVector3& normal, btScalar offset) 138 const btVector3* vertices1 = poly1->getVertices(); 139 const btVector3* normals1 = poly1->getNormals(); 142 const btVector3* vertices2 = poly2->getVertices(); 147 btVector3 normal1World = b2Mul(xf1.getBasis(), normals1[edge1]); 148 btVector3 normal1 = b2MulT(xf2.getBasis(), normal1World); 157 btVector3 v1 = b2Mul(xf1, vertices1[edge1]) [all...] |
/external/libgdx/extensions/gdx-bullet/jni/swig-src/extras/ |
extras_wrap.h | 21 virtual void setDynamicsWorldInfo(btVector3 const &gravity, btContactSolverInfo const &solverInfo); 24 virtual btCollisionShape *createPlaneShape(btVector3 const &planeNormal, btScalar planeConstant); 25 virtual btCollisionShape *createBoxShape(btVector3 const &halfExtents); 43 virtual btScaledBvhTriangleMeshShape *createScaledTrangleMeshShape(btBvhTriangleMeshShape *meshShape, btVector3 const &localScalingbtBvhTriangleMeshShape); 47 virtual btPoint2PointConstraint *createPoint2PointConstraint(btRigidBody &rbA, btRigidBody &rbB, btVector3 const &pivotInA, btVector3 const &pivotInB); 48 virtual btPoint2PointConstraint *createPoint2PointConstraint(btRigidBody &rbA, btVector3 const &pivotInA); 59 virtual btGearConstraint *createGearConstraint(btRigidBody &rbA, btRigidBody &rbB, btVector3 const &axisInA, btVector3 const &axisInB, btScalar ratio);
|
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/ |
gim_box_collision.h | 41 // const btVector3 & edge, 42 // const btVector3 & absolute_edge, 43 // const btVector3 & pointa, 44 // const btVector3 & pointb, const btVector3 & extend, 70 // const btVector3 & edge, 71 // const btVector3 & absolute_edge, 72 // const btVector3 & pointa, 73 // const btVector3 & pointb, btVector3 & extend [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/ConstraintSolver/ |
btGeneric6DofSpring2Constraint.h | 44 #include "LinearMath/btVector3.h" 171 btVector3 m_lowerLimit; 172 btVector3 m_upperLimit; 173 btVector3 m_bounce; 174 btVector3 m_stopERP; 175 btVector3 m_stopCFM; 176 btVector3 m_motorERP; 177 btVector3 m_motorCFM; 181 btVector3 m_servoTarget; 182 btVector3 m_springStiffness [all...] |
btHingeConstraint.cpp | 37 btHingeConstraint::btHingeConstraint(btRigidBody& rbA,btRigidBody& rbB, const btVector3& pivotInA,const btVector3& pivotInB, 38 const btVector3& axisInA,const btVector3& axisInB, bool useReferenceFrameA) 57 btVector3 rbAxisA1 = rbA.getCenterOfMassTransform().getBasis().getColumn(0); 59 btVector3 rbAxisA2; 77 btVector3 rbAxisB1 = quatRotate(rotationArc,rbAxisA1); 78 btVector3 rbAxisB2 = axisInB.cross(rbAxisB1); 99 btHingeConstraint::btHingeConstraint(btRigidBody& rbA,const btVector3& pivotInA,const btVector3& axisInA, bool useReferenceFrameA [all...] |
/external/libgdx/extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/ |
GIM_TRIANGLE_CONTACT.java | 86 public void setPoints(btVector3 value) { 87 CollisionJNI.GIM_TRIANGLE_CONTACT_points_set(swigCPtr, this, btVector3.getCPtr(value), value); 90 public btVector3 getPoints() { 92 return (cPtr == 0) ? null : new btVector3(cPtr, false); 107 public void merge_points(btVector4 plane, float margin, btVector3 points, int point_count) { 108 CollisionJNI.GIM_TRIANGLE_CONTACT_merge_points(swigCPtr, this, btVector4.getCPtr(plane), plane, margin, btVector3.getCPtr(points), points, point_count);
|
btPrimitiveTriangle.java | 61 public void setVertices(btVector3 value) { 62 CollisionJNI.btPrimitiveTriangle_vertices_set(swigCPtr, this, btVector3.getCPtr(value), value); 65 public btVector3 getVertices() { 67 return (cPtr == 0) ? null : new btVector3(cPtr, false); 115 public int clip_triangle(btPrimitiveTriangle other, btVector3 clipped_points) { 116 return CollisionJNI.btPrimitiveTriangle_clip_triangle(swigCPtr, this, btPrimitiveTriangle.getCPtr(other), other, btVector3.getCPtr(clipped_points), clipped_points);
|
ClosestConvexResultCallback.java | 81 public void setConvexFromWorld(btVector3 value) { 82 CollisionJNI.ClosestConvexResultCallback_convexFromWorld_set(swigCPtr, this, btVector3.getCPtr(value), value); 85 public btVector3 getConvexFromWorld() { 87 return (cPtr == 0) ? null : new btVector3(cPtr, false); 90 public void setConvexToWorld(btVector3 value) { 91 CollisionJNI.ClosestConvexResultCallback_convexToWorld_set(swigCPtr, this, btVector3.getCPtr(value), value); 94 public btVector3 getConvexToWorld() { 96 return (cPtr == 0) ? null : new btVector3(cPtr, false);
|
btBroadphaseProxy.java | 126 public void setAabbMin(btVector3 value) { 127 CollisionJNI.btBroadphaseProxy_aabbMin_set(swigCPtr, this, btVector3.getCPtr(value), value); 130 public btVector3 getAabbMin() { 132 return (cPtr == 0) ? null : new btVector3(cPtr, false); 135 public void setAabbMax(btVector3 value) { 136 CollisionJNI.btBroadphaseProxy_aabbMax_set(swigCPtr, this, btVector3.getCPtr(value), value); 139 public btVector3 getAabbMax() { 141 return (cPtr == 0) ? null : new btVector3(cPtr, false);
|
btConvexCast.java | 138 public void setNormal(btVector3 value) { 139 CollisionJNI.btConvexCast_CastResult_normal_set(swigCPtr, this, btVector3.getCPtr(value), value); 142 public btVector3 getNormal() { 144 return (cPtr == 0) ? null : new btVector3(cPtr, false); 147 public void setHitPoint(btVector3 value) { 148 CollisionJNI.btConvexCast_CastResult_hitPoint_set(swigCPtr, this, btVector3.getCPtr(value), value); 151 public btVector3 getHitPoint() { 153 return (cPtr == 0) ? null : new btVector3(cPtr, false);
|
btBox2dShape.java | 77 public btVector3 getVertices() { 79 return (cPtr == 0) ? null : new btVector3(cPtr, false); 82 public btVector3 getNormals() { 84 return (cPtr == 0) ? null : new btVector3(cPtr, false);
|
btBroadphaseRayCallback.java | 76 public void setRayDirectionInverse(btVector3 value) { 77 CollisionJNI.btBroadphaseRayCallback_rayDirectionInverse_set(swigCPtr, this, btVector3.getCPtr(value), value); 80 public btVector3 getRayDirectionInverse() { 82 return (cPtr == 0) ? null : new btVector3(cPtr, false);
|
btTriangleShape.java | 61 public void setVertices1(btVector3 value) { 62 CollisionJNI.btTriangleShape_vertices1_set(swigCPtr, this, btVector3.getCPtr(value), value); 65 public btVector3 getVertices1() { 67 return (cPtr == 0) ? null : new btVector3(cPtr, false);
|
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/Dynamics/ |
btDiscreteDynamicsWorld.cpp | 53 btAlignedObjectArray<btVector3> debugContacts; 54 btAlignedObjectArray<btVector3> debugNormals; 524 void btDiscreteDynamicsWorld::setGravity(const btVector3& gravity) 537 btVector3 btDiscreteDynamicsWorld::getGravity () const 643 body->setAngularVelocity(btVector3(0,0,0)); 644 body->setLinearVelocity(btVector3(0,0,0)); 804 btClosestNotMeConvexResultCallback (btCollisionObject* me,const btVector3& fromA,const btVector3& toA,btOverlappingPairCache* pairCache,btDispatcher* dispatcher) : 822 btVector3 linVelA,linVelB; 824 linVelB = btVector3(0,0,0);//toB.getOrigin()-fromB.getOrigin() [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/ |
btOptimizedBvh.cpp | 32 void btOptimizedBvh::build(btStridingMeshInterface* triangles, bool useQuantizedAabbCompression, const btVector3& bvhAabbMin, const btVector3& bvhAabbMax) 55 virtual void internalProcessTriangleIndex(btVector3* triangle,int partId,int triangleIndex) 58 btVector3 aabbMin,aabbMax; 97 virtual void internalProcessTriangleIndex(btVector3* triangle,int partId,int triangleIndex) 106 btVector3 aabbMin,aabbMax; 171 btVector3 aabbMin(btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT)); 172 btVector3 aabbMax(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT)); 206 void btOptimizedBvh::refit(btStridingMeshInterface* meshInterface,const btVector3& aabbMin,const btVector3& aabbMax [all...] |
btCompoundShape.cpp | 65 btVector3 localAabbMin,localAabbMax; 97 btVector3 localAabbMin,localAabbMax; 150 m_localAabbMin = btVector3(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT)); 151 m_localAabbMax = btVector3(btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT)); 156 btVector3 localAabbMin,localAabbMax; 169 void btCompoundShape::getAabb(const btTransform& trans,btVector3& aabbMin,btVector3& aabbMax) const 171 btVector3 localHalfExtents = btScalar(0.5)*(m_localAabbMax-m_localAabbMin); 172 btVector3 localCenter = btScalar(0.5)*(m_localAabbMax+m_localAabbMin); 180 localHalfExtents += btVector3(getMargin(),getMargin(),getMargin()) [all...] |
btTriangleIndexVertexArray.cpp | 82 void btTriangleIndexVertexArray::setPremadeAabb(const btVector3& aabbMin, const btVector3& aabbMax ) const 89 void btTriangleIndexVertexArray::getPremadeAabb(btVector3* aabbMin, btVector3* aabbMax ) const
|
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/NarrowPhaseCollision/ |
btContinuousConvexCollision.cpp | 65 const btVector3& planeNormal = planeShape->getPlaneNormal(); 74 btVector3 vtx = convexShape->localGetSupportingVertex(planeInConvex.getBasis()*-planeNormal); 76 btVector3 vtxInPlane = convexInPlaneTrans(vtx); 79 btVector3 vtxInPlaneProjected = vtxInPlane - distance*planeNormal; 80 btVector3 vtxInPlaneWorld = transB * vtxInPlaneProjected; 81 btVector3 normalOnSurfaceB = transB.getBasis() * planeNormal; 100 btVector3 linVelA,angVelA,linVelB,angVelB; 109 btVector3 relLinVel = (linVelB-linVelA); 119 btVector3 v(1,0,0); 123 btVector3 n [all...] |
btGjkPairDetector.cpp | 89 btVector3 normalInB(btScalar(0.),btScalar(0.),btScalar(0.)); 91 btVector3 pointOnA,pointOnB; 94 btVector3 positionOffset=(localTransA.getOrigin() + localTransB.getOrigin()) * btScalar(0.5); 137 btVector3 seperatingAxisInA = (-m_cachedSeparatingAxis)* input.m_transformA.getBasis(); 138 btVector3 seperatingAxisInB = m_cachedSeparatingAxis* input.m_transformB.getBasis(); 141 btVector3 pInA = m_minkowskiA->localGetSupportVertexWithoutMarginNonVirtual(seperatingAxisInA); 142 btVector3 qInB = m_minkowskiB->localGetSupportVertexWithoutMarginNonVirtual(seperatingAxisInB); 144 btVector3 pWorld = localTransA(pInA); 145 btVector3 qWorld = localTransB(qInB); 154 btVector3 w = pWorld - qWorld [all...] |
btGjkEpa3.h | 45 btVector3 witnesses[2]; 46 btVector3 normal; 113 inline btVector3 Support0(const btVector3& d) const 117 inline btVector3 Support1(const btVector3& d) const 123 inline btVector3 Support(const btVector3& d) const 127 btVector3 Support(const btVector3& d,U index) cons [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/Vehicle/ |
btWheelInfo.cpp | 31 btVector3 chassis_velocity_at_contactPoint; 32 btVector3 relpos = m_raycastInfo.m_contactPointWS - chassis.getCenterOfMassPosition();
|
/external/libgdx/extensions/gdx-bullet/jni/swig-src/softbody/com/badlogic/gdx/physics/bullet/softbody/ |
btSoftBodyWorldInfo.java | 95 public void setWater_normal(btVector3 value) { 96 SoftbodyJNI.btSoftBodyWorldInfo_water_normal_set(swigCPtr, this, btVector3.getCPtr(value), value); 99 public btVector3 getWater_normal() { 101 return (cPtr == 0) ? null : new btVector3(cPtr, false); 122 public void setGravity(btVector3 value) { 123 SoftbodyJNI.btSoftBodyWorldInfo_gravity_set(swigCPtr, this, btVector3.getCPtr(value), value); 126 public btVector3 getGravity() { 128 return (cPtr == 0) ? null : new btVector3(cPtr, false);
|
/external/libgdx/extensions/gdx-bullet/jni/swig-src/linearmath/com/badlogic/gdx/physics/bullet/linearmath/ |
PHullResult.java | 88 public void setMVertices(btVector3 value) { 89 LinearMathJNI.PHullResult_mVertices_set(swigCPtr, this, btVector3.getCPtr(value), value); 92 public btVector3 getMVertices() { 94 return (cPtr == 0) ? null : new btVector3(cPtr, false);
|