Home
last modified time | relevance | path

Searched refs:getWorldTransform (Results 1 – 25 of 86) sorted by relevance

1234

/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/
DbtConvexConvexAlgorithm.cpp324 body0Wrap->getWorldTransform(),body1Wrap->getWorldTransform(),threshold); in processCollision()
342 m_sepDistance.updateSeparatingDistance(body0->getWorldTransform(),body1->getWorldTransform()); in processCollision()
376 input.m_transformA = body0Wrap->getWorldTransform(); in processCollision()
377 input.m_transformB = body1Wrap->getWorldTransform(); in processCollision()
473 body0Wrap->getWorldTransform(), in processCollision()
474 body1Wrap->getWorldTransform(), in processCollision()
507 body0Wrap->getWorldTransform(), in processCollision()
508 body1Wrap->getWorldTransform(), minDist-threshold, threshold, *resultOut); in processCollision()
525 vertices.push_back( body1Wrap->getWorldTransform()*tri->m_vertices1[0]); in processCollision()
526 vertices.push_back( body1Wrap->getWorldTransform()*tri->m_vertices1[1]); in processCollision()
[all …]
DbtConvexPlaneCollisionAlgorithm.cpp66 btTransform convexWorldTransform = convexObjWrap->getWorldTransform(); in collideSingleContact()
68 convexInPlaneTrans= planeObjWrap->getWorldTransform().inverse() * convexWorldTransform; in collideSingleContact()
72 planeInConvex= convexWorldTransform.inverse() * planeObjWrap->getWorldTransform(); in collideSingleContact()
80 btVector3 vtxInPlaneWorld = planeObjWrap->getWorldTransform() * vtxInPlaneProjected; in collideSingleContact()
87 btVector3 normalOnSurfaceB = planeObjWrap->getWorldTransform().getBasis() * planeNormal; in collideSingleContact()
110 planeInConvex= convexObjWrap->getWorldTransform().inverse() * planeObjWrap->getWorldTransform(); in processCollision()
112 …convexInPlaneTrans= planeObjWrap->getWorldTransform().inverse() * convexObjWrap->getWorldTransform in processCollision()
119 btVector3 vtxInPlaneWorld = planeObjWrap->getWorldTransform() * vtxInPlaneProjected; in processCollision()
126 btVector3 normalOnSurfaceB = planeObjWrap->getWorldTransform().getBasis() * planeNormal; in processCollision()
DbtConvex2dConvex2dAlgorithm.cpp135 input.m_transformA = body0Wrap->getWorldTransform(); in processCollision()
136 input.m_transformB = body1Wrap->getWorldTransform(); in processCollision()
166 …eMot0 = (col0->getInterpolationWorldTransform().getOrigin() - col0->getWorldTransform().getOrigin(… in calculateTimeOfImpact()
167 …eMot1 = (col1->getInterpolationWorldTransform().getOrigin() - col1->getWorldTransform().getOrigin(… in calculateTimeOfImpact()
192 if (ccd1.calcTimeOfImpact(col0->getWorldTransform(),col0->getInterpolationWorldTransform(), in calculateTimeOfImpact()
193 col1->getWorldTransform(),col1->getInterpolationWorldTransform(),result)) in calculateTimeOfImpact()
225 if (ccd1.calcTimeOfImpact(col0->getWorldTransform(),col0->getInterpolationWorldTransform(), in calculateTimeOfImpact()
226 col1->getWorldTransform(),col1->getInterpolationWorldTransform(),result)) in calculateTimeOfImpact()
DbtCompoundCollisionAlgorithm.cpp67 …(colObjWrap,childShape,colObjWrap->getCollisionObject(),colObjWrap->getWorldTransform(),-1,i);//wr… in preallocateChildAlgorithms()
125 btTransform orgTrans = m_compoundColObjWrap->getWorldTransform(); in ProcessChildShape()
133 …m_otherObjWrap->getCollisionShape()->getAabb(m_otherObjWrap->getWorldTransform(),aabbMin1,aabbMax1… in ProcessChildShape()
200 btTransform orgTrans = m_compoundColObjWrap->getWorldTransform(); in Process()
272 …otherInCompoundSpace = colObjWrap->getWorldTransform().inverse() * otherObjWrap->getWorldTransform in processCollision()
307 orgTrans = colObjWrap->getWorldTransform(); in processCollision()
314 otherObjWrap->getCollisionShape()->getAabb(otherObjWrap->getWorldTransform(),aabbMin1,aabbMax1); in processCollision()
356 orgTrans = colObj->getWorldTransform(); in calculateTimeOfImpact()
DbtManifoldResult.h109 …ints(m_body1Wrap->getCollisionObject()->getWorldTransform(),m_body0Wrap->getCollisionObject()->get… in refreshContactPoints()
112 …ints(m_body0Wrap->getCollisionObject()->getWorldTransform(),m_body1Wrap->getCollisionObject()->get… in refreshContactPoints()
DbtConvexConcaveCollisionAlgorithm.cpp105 btTransform& tr = ob->getWorldTransform(); in processTriangle()
118 …_triBodyWrap,&tm,m_triBodyWrap->getCollisionObject(),m_triBodyWrap->getWorldTransform(),partId,tri… in processTriangle()
167 …convexInTriangleSpace = m_triBodyWrap->getWorldTransform().inverse() * m_convexBodyWrap->getWorldT… in setTimeStepAndCounters()
233 …vexbody->getInterpolationWorldTransform().getOrigin() - convexbody->getWorldTransform().getOrigin(… in calculateTimeOfImpact()
243 btTransform triInv = triBody->getWorldTransform().inverse(); in calculateTimeOfImpact()
244 btTransform convexFromLocal = triInv * convexbody->getWorldTransform(); in calculateTimeOfImpact()
DbtSphereSphereCollisionAlgorithm.cpp55 …btVector3 diff = col0Wrap->getWorldTransform().getOrigin()- col1Wrap->getWorldTransform().getOrig… in processCollision()
84 btVector3 pos1 = col1Wrap->getWorldTransform().getOrigin() + radius1* normalOnSurfaceB; in processCollision()
DbtManifoldResult.cpp96 localA = m_body1Wrap->getCollisionObject()->getWorldTransform().invXform(pointA ); in addContactPoint()
97 localB = m_body0Wrap->getCollisionObject()->getWorldTransform().invXform(pointInWorld); in addContactPoint()
100 localA = m_body0Wrap->getCollisionObject()->getWorldTransform().invXform(pointA ); in addContactPoint()
101 localB = m_body1Wrap->getCollisionObject()->getWorldTransform().invXform(pointInWorld); in addContactPoint()
DbtCompoundCompoundCollisionAlgorithm.cpp148 btTransform orgTrans0 = m_compound0ColObjWrap->getWorldTransform(); in Process()
152 btTransform orgTrans1 = m_compound1ColObjWrap->getWorldTransform(); in Process()
343 …const btTransform xform=col0ObjWrap->getWorldTransform().inverse()*col1ObjWrap->getWorldTransform(… in processCollision()
378 orgTrans0 = col0ObjWrap->getWorldTransform(); in processCollision()
379 orgInterpolationTrans0 = col0ObjWrap->getWorldTransform(); in processCollision()
392 orgTrans1 = col1ObjWrap->getWorldTransform(); in processCollision()
393 orgInterpolationTrans1 = col1ObjWrap->getWorldTransform(); in processCollision()
DbtInternalEdgeUtility.cpp497 const btTransform& tr = colObj0->getWorldTransform(); in btAdjustInternalEdgeContacts()
508 …btVector3 localContactNormalOnB = colObj0Wrap->getWorldTransform().getBasis().transpose() * cp.m_n… in btAdjustInternalEdgeContacts()
616 btVector3 newNormal = colObj0Wrap->getWorldTransform().getBasis() * clampedLocalNormal; in btAdjustInternalEdgeContacts()
621 cp.m_localPointB = colObj0Wrap->getWorldTransform().invXform(cp.m_positionWorldOnB); in btAdjustInternalEdgeContacts()
697 …btVector3 localContactNormalOnB = colObj0Wrap->getWorldTransform().getBasis().transpose() * cp.m_n… in btAdjustInternalEdgeContacts()
704 btVector3 newNormal = colObj0Wrap->getWorldTransform().getBasis() * clampedLocalNormal; in btAdjustInternalEdgeContacts()
709 cp.m_localPointB = colObj0Wrap->getWorldTransform().invXform(cp.m_positionWorldOnB); in btAdjustInternalEdgeContacts()
782 …btVector3 localContactNormalOnB = colObj0Wrap->getWorldTransform().getBasis().transpose() * cp.m_n… in btAdjustInternalEdgeContacts()
789 btVector3 newNormal = colObj0Wrap->getWorldTransform().getBasis() * clampedLocalNormal; in btAdjustInternalEdgeContacts()
794 cp.m_localPointB = colObj0Wrap->getWorldTransform().invXform(cp.m_positionWorldOnB); in btAdjustInternalEdgeContacts()
[all …]
DbtCollisionWorld.cpp122 btTransform trans = collisionObject->getWorldTransform(); in addCollisionObject()
150 colObj->getCollisionShape()->getAabb(colObj->getWorldTransform(), minAabb,maxAabb); in updateSingleAabb()
280 const btTransform& colObjWorldTransform = collisionObjectWrap->getWorldTransform(); in rayTestSingleInternal()
587 const btTransform& colObjWorldTransform = colObjWrap->getWorldTransform(); in objectQuerySingleInternal()
902 …collisionObject->getCollisionShape()->getAabb(collisionObject->getWorldTransform(),collisionObject… in process()
916 collisionObject->getWorldTransform(), in process()
991 collisionObject->getWorldTransform(), in process()
1045 …collisionObject->getCollisionShape()->getAabb(collisionObject->getWorldTransform(),collisionObject… in convexSweepTest()
1054 collisionObject->getWorldTransform(), in convexSweepTest()
1084 localA = m_body1Wrap->getCollisionObject()->getWorldTransform().invXform(pointA ); in addContactPoint()
[all …]
DbtBoxBoxCollisionAlgorithm.cpp64 input.m_transformA = body0Wrap->getWorldTransform(); in processCollision()
65 input.m_transformB = body1Wrap->getWorldTransform(); in processCollision()
DbtGhostObject.cpp128 …collisionObject->getCollisionShape()->getAabb(collisionObject->getWorldTransform(),collisionObject… in convexSweepTest()
137 collisionObject->getWorldTransform(), in convexSweepTest()
166 collisionObject->getWorldTransform(), in rayTest()
DbtSphereTriangleCollisionAlgorithm.cpp63 input.m_transformA = sphereObjWrap->getWorldTransform(); in processCollision()
64 input.m_transformB = triObjWrap->getWorldTransform(); in processCollision()
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/
DPhysicsGhostObject.java108 gObject.getWorldTransform(tempTrans); in setPhysicsLocation()
118 gObject.getWorldTransform(tempTrans); in setPhysicsRotation()
128 gObject.getWorldTransform(tempTrans); in setPhysicsRotation()
147 gObject.getWorldTransform(tempTrans); in getPhysicsLocation()
159 gObject.getWorldTransform(tempTrans); in getPhysicsRotation()
171 gObject.getWorldTransform(tempTrans); in getPhysicsRotationMatrix()
180 gObject.getWorldTransform(tempTrans); in getPhysicsLocation()
189 gObject.getWorldTransform(tempTrans); in getPhysicsRotation()
195 gObject.getWorldTransform(tempTrans); in getPhysicsRotationMatrix()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/
DbtGImpactCollisionAlgorithm.cpp259 …per ob0(body0Wrap,shape0,body0Wrap->getCollisionObject(),body0Wrap->getWorldTransform(),m_part0,m_… in convex_vs_convex_collision()
260 …per ob1(body1Wrap,shape1,body1Wrap->getCollisionObject(),body1Wrap->getWorldTransform(),m_part1,m_… in convex_vs_convex_collision()
394 btTransform orgtrans0 = body0Wrap->getWorldTransform(); in collide_sat_triangles()
395 btTransform orgtrans1 = body1Wrap->getWorldTransform(); in collide_sat_triangles()
497 btTransform orgtrans0 = body0Wrap->getWorldTransform(); in gimpact_vs_gimpact()
498 btTransform orgtrans1 = body1Wrap->getWorldTransform(); in gimpact_vs_gimpact()
541 btTransform tr0 = body0Wrap->getWorldTransform(); in gimpact_vs_gimpact()
542 btTransform tr1 = body1Wrap->getWorldTransform(); in gimpact_vs_gimpact()
617 btTransform orgtrans0 = body0Wrap->getWorldTransform(); in gimpact_vs_shape()
619 btTransform orgtrans1 = body1Wrap->getWorldTransform(); in gimpact_vs_shape()
[all …]
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletSoftBody/
DbtSoftBodyConcaveCollisionAlgorithm.cpp101 const btTransform& tr = m_triBody->getWorldTransform(); in processTriangle()
120 …apper softBody(0,m_softBody->getCollisionShape(),m_softBody,m_softBody->getWorldTransform(),-1,-1); in processTriangle()
122 …btCollisionObjectWrapper triBody(0,tm, m_triBody, m_triBody->getWorldTransform(),partId, triangleI… in processTriangle()
164 …apper softBody(0,m_softBody->getCollisionShape(),m_softBody,m_softBody->getWorldTransform(),-1,-1); in processTriangle()
165 …btCollisionObjectWrapper triBody(0,tm, m_triBody, m_triBody->getWorldTransform(),partId, triangleI… in processTriangle()
201 convexInTriangleSpace = triBodyWrap->getWorldTransform().inverse() * softTransform; in setTimeStepAndCounters()
256 …vexbody->getInterpolationWorldTransform().getOrigin() - convexbody->getWorldTransform().getOrigin(… in calculateTimeOfImpact()
266 btTransform triInv = triBody->getWorldTransform().inverse(); in calculateTimeOfImpact()
267 btTransform convexFromLocal = triInv * convexbody->getWorldTransform(); in calculateTimeOfImpact()
/external/jmonkeyengine/engine/src/bullet-native/
Dcom_jme3_bullet_objects_PhysicsGhostObject.cpp89 jmeBulletUtil::convert(env, value, &ghost->getWorldTransform().getOrigin()); in Java_com_jme3_bullet_objects_PhysicsGhostObject_setPhysicsLocation()
105 jmeBulletUtil::convert(env, value, &ghost->getWorldTransform().getBasis()); in Java_com_jme3_bullet_objects_PhysicsGhostObject_setPhysicsRotation__JLcom_jme3_math_Matrix3f_2()
121 jmeBulletUtil::convertQuat(env, value, &ghost->getWorldTransform().getBasis()); in Java_com_jme3_bullet_objects_PhysicsGhostObject_setPhysicsRotation__JLcom_jme3_math_Quaternion_2()
137 jmeBulletUtil::convert(env, &ghost->getWorldTransform().getOrigin(), value); in Java_com_jme3_bullet_objects_PhysicsGhostObject_getPhysicsLocation()
153 jmeBulletUtil::convertQuat(env, &ghost->getWorldTransform().getBasis(), value); in Java_com_jme3_bullet_objects_PhysicsGhostObject_getPhysicsRotation()
169 jmeBulletUtil::convert(env, &ghost->getWorldTransform().getBasis(), value); in Java_com_jme3_bullet_objects_PhysicsGhostObject_getPhysicsRotationMatrix()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/ConstraintSolver/
DbtGearConstraint.cpp42 globalAxisA = m_rbA.getWorldTransform().getBasis()*this->m_axisInA; in getInfo2()
43 globalAxisB = m_rbB.getWorldTransform().getBasis()*this->m_axisInB; in getInfo2()
/external/libgdx/extensions/gdx-bullet/jni/src/custom/gdx/collision/
DCollisionObjectWrapper.h35 …lisionObject->getCollisionShape(),collisionObject, collisionObject->getWorldTransform(), partId, i…
38 …lisionObject->getCollisionShape(),collisionObject, collisionObject->getWorldTransform(), partId, i…
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/NarrowPhaseCollision/
DbtComputeGjkEpaPenetration.h38 …btVector3 guessVector(b.getWorldTransform().getOrigin()-a.getWorldTransform().getOrigin());//?? wh… in btGjkEpaCalcPenDepth()
76 btTransform localTransA = a.getWorldTransform(); in btComputeGjkEpaPenetration()
77 btTransform localTransB = b.getWorldTransform(); in btComputeGjkEpaPenetration()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/Dynamics/
DbtDiscreteDynamicsWorld.cpp907 …btScalar squareMotion = (predictedTrans.getOrigin()-body->getWorldTransform().getOrigin()).length2… in createPredictiveContacts()
934 …StaticOnlyCallback sweepResults(body,body->getWorldTransform().getOrigin(),predictedTrans.getOrigi… in createPredictiveContacts()
936 …btClosestNotMeConvexResultCallback sweepResults(body,body->getWorldTransform().getOrigin(),predict… in createPredictiveContacts()
945 modifiedPredictedTrans.setBasis(body->getWorldTransform().getBasis()); in createPredictiveContacts()
947 convexSweepTest(&tmpSphere,body->getWorldTransform(),modifiedPredictedTrans,sweepResults); in createPredictiveContacts()
951 …btVector3 distVec = (predictedTrans.getOrigin()-body->getWorldTransform().getOrigin())*sweepResult… in createPredictiveContacts()
958 btVector3 worldPointB = body->getWorldTransform().getOrigin()+distVec; in createPredictiveContacts()
959 …btVector3 localPointB = sweepResults.m_hitCollisionObject->getWorldTransform().inverse()*worldPoin… in createPredictiveContacts()
968 pt.m_positionWorldOnA = body->getWorldTransform().getOrigin(); in createPredictiveContacts()
991 …btScalar squareMotion = (predictedTrans.getOrigin()-body->getWorldTransform().getOrigin()).length2… in integrateTransforms()
[all …]
DbtRigidBody.cpp69 m_optionalMotionState->getWorldTransform(m_worldTransform); in setupRigidBody()
116 getMotionState()->getWorldTransform(m_worldTransform); in saveKinematicState()
295 …btMatrix3x3 inertiaTensorWorld = getWorldTransform().getBasis().scaled(inertiaLocal) * getWorldTra… in computeGyroscopicForceExplicit()
318 btQuaternion q = getWorldTransform().getRotation(); in computeGyroscopicImpulseImplicit_Body()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/Character/
DbtKinematicCharacterController.cpp92 …hitNormalWorld = convexResult.m_hitCollisionObject->getWorldTransform().getBasis()*convexResult.m_… in addSingleResult()
181 m_convexShape->getAabb(m_ghostObject->getWorldTransform(), minAabb,maxAabb); in recoverFromPenetration()
191 m_currentPosition = m_ghostObject->getWorldTransform().getOrigin(); in recoverFromPenetration()
238 btTransform newTrans = m_ghostObject->getWorldTransform(); in recoverFromPenetration()
624 m_currentPosition = m_ghostObject->getWorldTransform().getOrigin(); in preStep()
660 xform = m_ghostObject->getWorldTransform (); in playerStep()
722 m_rigidBody->getMotionState()->getWorldTransform (xform); in jump()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/LinearMath/
DbtMotionState.h32 virtual void getWorldTransform(btTransform& worldTrans ) const =0;

1234