I need a 6 DOF joint

Karan

21-10-2008 19:52:21

Hi,

I've got an Actor made from two partly overlaping Sphere shapes (one above the other, the upper one a little smaller). I want to use a joint to prevent it from toppling.
My idea is to use a 6 DOF joint and lock the 3 rotational axes, but that joint isn't present in NxOgre.

Is there a way to do it with the existing joints? I couldn't think of any.
If not, can I bypass NxOgre by creating the Scene directly with NxPhysicsSDK to have a pointer to the NxScene and use its createJoint()-method to create a NxD6Joint? (I'd construct the NxOgre::Scene from the NxScene then for the rest...)

Or might it be implemented soon in NxOgre...?

betajaen

21-10-2008 20:13:07

You can use NxOgre normally, and create the NxD6Joint by hand. Obviously NxOgre won't look after the pointer for you but you can use actor->getNxActor() and scene->getNxScene() (instead of creating a NxScene/NxActor's by hand) to set it up.

Karan

21-10-2008 20:22:04

Thanks, I already looked for scene->getNxScene() , but somehow I missed it....