Ghostby
27-02-2008 16:40:07
Hi, I just started study ogre and nxogre.
I created two bodies, one static and one dynamic. And I have a problem. Dynamic body fails through static. They do not collide among themselves. How to make that they have collided?
NickM
27-02-2008 17:27:29
Are both shapes made from NxOgre::TriangleMeshShape? If so they won't collide with each other. Try NxOgre::ConvexShape for the static one if possible.
Ghostby
28-02-2008 10:16:36
Thank you for answer. Now it's works.
If I correctly understood the entire landscape must be TriangleMeshShape and all dynamic objects must be ConvexShape. That's right?
And another short question - are there any restrictions on the size of mesh for cooking TriangleMeshShape and ConvexShape?
betajaen
28-02-2008 11:33:09
I think ConvexShape has a vertex limit, and TriangleMeshShapes usually work best with few vertices/faces as possible; i.e. a flat piece of road can be represented with two triangles rather than say 12.
It's in the PhysX Documentation though.