Attach a skeleton bone & OgreNewt joint.

DarkCoder

17-05-2006 21:15:41

Hey all,
Does anyone know a real easy way to attach a Skeletal Bone to an OgreNewt joint.
So the skeletal bone gets orientated the same as the OgreNewt joint.

wondering if there is a real simple way like the way you attach an entity to a scenenode.
Without having to make a class to track all the newton joints & update the skeleton joints every loop.

I have looked at the ragdoll demo but its not the quick solution im looking for.

Thanks for any posts :)

walaber

17-05-2006 21:27:22

well... the ragdoll class I made is about as simple as it gets. you will need to make a custom transform callback for the rigid bodies involved, and then get their angles relative to their parents, and use that for the bone orientation.

DarkCoder

17-05-2006 22:02:47

Yea, i thought as much.

Thanks walaber, OgreNewt is real nice btw :)