walaber
05-03-2006 07:15:41
just wanted to share with everyone that I have modified the Ragdoll.h / .cpp that I am using for my Trampoline game (was the same as the ragdoll demo that comes with OgreNewt), to now allow for automatic convex hull generation from the vertices assigned to each bone.
the system still uses the same file format as before, but instead of specifying a shape and size, you can just ask for a "hull", and it creates a convex hull from the verts! you also give it a minimum weight value, and it only adds verts to the hull with a weight above the threshold.
it's working perfectly, here is a screenshot of my trampoline game with a new hull-ified ragdoll
I will add this to the Ragdoll demo in OgreNewt, possibly with 2 different .rag files to show how to use it.... when I get a chance!
the system still uses the same file format as before, but instead of specifying a shape and size, you can just ask for a "hull", and it creates a convex hull from the verts! you also give it a minimum weight value, and it only adds verts to the hull with a weight above the threshold.
it's working perfectly, here is a screenshot of my trampoline game with a new hull-ified ragdoll
I will add this to the Ragdoll demo in OgreNewt, possibly with 2 different .rag files to show how to use it.... when I get a chance!