KyleKatarn
24-09-2009 04:34:35
Hello again.
I've got a question about generating an Ogre3D Bodies around a mesh. I'm trying to write up code which will allow my character to collide with my environment, but when I write up a test body, I get this:
As you can see, the capsule is generated around her feet. Is this meant to happen? Or does it all depend on the exported object's modelling axis? i.e. if I export my mesh with the modelling axis not in the center, and load it into code and generate a physics mesh around it, does it generate around the modelling axis and not the object?
Also, is it possible to generate a cylinder body, instead of a capsule? If not, can I somehow freeze the capsule in the y axis so it wont roll around?
I've got a question about generating an Ogre3D Bodies around a mesh. I'm trying to write up code which will allow my character to collide with my environment, but when I write up a test body, I get this:
As you can see, the capsule is generated around her feet. Is this meant to happen? Or does it all depend on the exported object's modelling axis? i.e. if I export my mesh with the modelling axis not in the center, and load it into code and generate a physics mesh around it, does it generate around the modelling axis and not the object?
Also, is it possible to generate a cylinder body, instead of a capsule? If not, can I somehow freeze the capsule in the y axis so it wont roll around?