Flour and skeleton

cafeole

17-03-2010 15:53:04

Hi I am a newbie in NxOgre but I have used Ogre and Blender some time. I have created a mesh and skeleton and it works perfect in Ogre but I want to add gravity and collisions to them (I want that my mesh character climb stairs). I have used flour to transform .mesh in .nxs and it works as rigid solid, but if I rotate a bone of the mesh, it doesn't work as expected because seems like collisions don't change from the original.

I think that I have to use flour to transform .skeleton in a format file that NxOgre accepts, but I don't know how.

Could anyone help me??

Thanks :)

betajaen

17-03-2010 16:04:53

NxOgre and PhysX don't do "skeletons" like in the way Ogre does. Once a mesh has been created, it can't be changed.

cafeole

22-03-2010 07:35:20

Thanks for answering! :) So, could I rotate a bone and use flour programmatically to create another convex shape to do new collisions??

betajaen

22-03-2010 11:11:24

You wouldn't do it that way, the possible combinations of your skeleton bones are near infinite - if you think about it.

Instead; the normal way is to construct your character out of primitives that make up parts of the body (spheres and capsules) and move them with the skeleton.

cafeole

22-03-2010 15:44:07

Thanks betajaen! :D

I have read post about ragdolls and I am trying to do something similar with my project.