Use cylinder inertia tensor, instead of box, by default.
See Issue 427 Expose some internal data for constraints, Thanks to Francois Sugny, see Issue 420
This commit is contained in:
@@ -713,6 +713,15 @@ void btGeneric6DofConstraint::updateRHS(btScalar timeStep)
|
||||
}
|
||||
|
||||
|
||||
void btGeneric6DofConstraint::setFrames(const btTransform & frameA, const btTransform & frameB)
|
||||
{
|
||||
m_frameInA = frameA;
|
||||
m_frameInB = frameB;
|
||||
buildJacobian();
|
||||
calculateTransforms();
|
||||
}
|
||||
|
||||
|
||||
|
||||
btVector3 btGeneric6DofConstraint::getAxis(int axis_index) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user