Ragdoll

Blitz3D Forums/Blitz3D Beginners Area/Ragdoll

Buggy(Posted 2007) [#1]
If, for example, I was to make a ragdoll simulation, how would I pivot different body parts to each other, but not pivoting around the center point?

Is there a way to control bones from within Blitz, because this would help mucho as an alternative.


b32(Posted 2007) [#2]
Hmm :/ not sure if this is what you need, but still:

This code demonstrates, that to change the point where a mesh rotates, you could use PositionMesh.

What is it that you want to do ? You could maybe load in a .b3d skeleton, and then attach a mesh to it later on.

And I believe you can move, turn and rotate bones ? Use the GetChild/FindChild command to find them.
bone = FindChild("footbone")
turnentity bone, 1, 0, 0


For more control over the B3D bones, you could open the B3D, change the properties and save it back again with Ricky Smiths code:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1794

Also, I believe there is a ragdoll example in one of the physics libraries. I saw one in the Newton wrapper examples.


Buggy(Posted 2007) [#3]
Thanks a lot! I'm still a little confused, but I think this helped.