How can i do heavy object

CmonGirl

09-11-2010 18:57:02

Hi guys.
I have a big problem :) I cant do heavy object. I tried change mMast and desinty but did not work. I wanna a heavy box. Someone help me pls.
NxOgre::Mesh* FreightMesh = NxOgre::MeshManager::getSingleton()->load("media:box.nxs");
NxOgre::RigidBodyDescription Rgd = NxOgre::RigidBodyDescription();
//Rgd.mDensity = 0;
Rgd.mMass = 1000;
FreightBody = mRenderSystem->createBody(new NxOgre::Convex(FreightMesh),InitDesc.SpawnLocation,"box.mesh",Rgd);

betajaen

09-11-2010 19:18:19

Increasing the mass does make the box heavier.

Remember; NxOgre uses the MKS system of units. So that's a 1000 Kilogram box you have there.

CmonGirl

10-11-2010 09:05:32

Thanks beta. It is working. But i have a question. Why dont collide trianglemesh-trianglemesh among themselves ? But good collide convex-triangle. Pls help me.

betajaen

10-11-2010 09:46:02

Because they don't; NO Physics engine supports triangle/triangle collisions and you NEVER attach any triangle meshes or terrain to Bodies/Actors, they are always attached to SceneGeometries and stay fixed within the lifetime of the scene.