Getting mesh in actor problem.

doboszsite

05-04-2010 19:26:59

Hi,
I'm quite new in creating Ogre apps and I need some help. I've just got into NxOgre (1.5.4) and i would like to go some coding with physic implemented. Right now I'm writing easy dice throw simulation and I need to get the dice mesh into the box actor. Somehow it always gets out of it. Here is my source:

[...]
mCube = mRenderSystem->createBody(new NxOgre::Box(16, 16, 16), NxOgre::Vec3(0, 100, 0), "dice.mesh");
[...]

The dice has 16mx16mx16m and I’m trying to get it in this box actor. I did change units in 3ds Max to meters.
The result is on the screen:

I'm using 3ds Max + OgreMax for mesh, Ogre 1.6.4, NxOgre 1.5.4 build from PhysX SDK 2.8.3.
I'm looking for some help.

betajaen

05-04-2010 19:30:19

Your mesh isn't corrected centred.

I'm sure it's easily fixable in Max, otherwise MeshMagick can do it.

doboszsite

05-04-2010 19:48:57

Thanks. I've just moved pivot to the center of the object in max and it worked just fine.