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:
erwin.coumans
2010-11-17 23:55:39 +00:00
parent bc3b920995
commit c49927b4ed
8 changed files with 133 additions and 10 deletions

View File

@@ -1114,4 +1114,12 @@ btScalar btConeTwistConstraint::getParam(int num, int axis) const
}
void btConeTwistConstraint::setFrames(const btTransform & frameA, const btTransform & frameB)
{
m_rbAFrame = frameA;
m_rbBFrame = frameB;
buildJacobian();
//calculateTransforms();
}