btConeTwistConstraint rbAFrame and rbBFrame?

Sauce
Posts: 11
Joined: Fri Jun 04, 2010 11:33 am

btConeTwistConstraint rbAFrame and rbBFrame?

Post by Sauce »

I'm developing a ragdoll simulation in Ogre using a series of btCapsuleShapes as the bones. I've been able to succesfully construct the bone hierarchy from an Ogre::Skeleton, however I've been unable to find the correct method of connecting them. Bullet's ragdoll sample hasn't been very helpful, with all the data being hard-coded magic numbers, with no comments indicating how the values were arrived at.

My question is, what do the rbAFrame and rbBFrame values in the constructor of btConeTwistConstraint represent?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: btConeTwistConstraint rbAFrame and rbBFrame?

Post by Erwin Coumans »

Sauce wrote: My question is, what do the rbAFrame and rbBFrame values in the constructor of btConeTwistConstraint represent?
They are the constraint frames (constraint attachments / pivot coordinates) in local space of each body.
Thanks,
Erwin