101 return (plDynamicsWorldHandle)
new (mem)
btDiscreteDynamicsWorld(dispatcher,pairCache,constraintSolver,collisionConfiguration);
139 plRigidBodyHandle
plCreateRigidBody(
void* user_data,
float mass, plCollisionShapeHandle cshape )
155 return (plRigidBodyHandle) body;
171 return (plCollisionShapeHandle)
new (mem)
btSphereShape(radius);
185 const int numSpheres = 2;
187 btScalar radi[numSpheres] = {radius,radius};
189 return (plCollisionShapeHandle)
new (mem)
btMultiSphereShape(positions,radi,numSpheres);
194 return (plCollisionShapeHandle)
new (mem)
btConeShape(radius,height);
233 compoundShape->addChildShape(localTrans,childShape);
240 orient[0] = orn.
getX();
241 orient[1] = orn.
getY();
242 orient[2] = orn.
getZ();
243 orient[3] = orn.
getW();
272 btVector3 scaling(cscaling[0],cscaling[1],cscaling[2]);
282 btVector3 pos(position[0],position[1],position[2]);
292 btQuaternion orn(orientation[0],orientation[1],orientation[2],orientation[3]);
319 position[0] = pos.
getX();
320 position[1] = pos.
getY();
321 position[2] = pos.
getZ();
329 orientation[0] = orn.
getX();
330 orientation[1] = orn.
getY();
331 orientation[2] = orn.
getZ();
332 orientation[3] = orn.
getW();
341 double plNearestPoints(
float p1[3],
float p2[3],
float p3[3],
float q1[3],
float q2[3],
float q3[3],
float *pa,
float *pb,
float normal[3])
358 sGjkSimplexSolver.reset();
367 btGjkPairDetector convexConvex(&trishapeA ,&trishapeB,&sGjkSimplexSolver,Solver);