I known that i need to set two local transforms that define the relative orientation and position of the constraint (frame InA, frameInB). Obtaining the local pivot points from the global pivot point is dead simple :
Code: Select all
btTransform localFrame = body1->getCenterOfMassTransform();
btTransform globaltransform;
globaltransform.setIdentity();
globaltransform.setOrigin(globalpos);
btVector3 localPivot = (localframe.inverse() * globaltransform).getOrigin();
Thanks.