I want to make a race game and My terrain is not flat.

whw

25-10-2008 04:18:47

my problem is how can i check my car collision with my car exactitude

i try this ,but i cann't see the terrain

NxOgre::Resources::ResourceSystem::getSingleton()->addMeshAs("file://../../media/models/terrain.mesh", "villeCollision");
NxOgre::Resources::Mesh* collisionMesh = NxOgre::Resources::ResourceSystem::getSingleton()->getMesh("villeCollision");
NxOgre::Actor* collisionActor = mPhysiX->mNxScene->createActor ( "Collision Mesh", new NxOgre::TriangleMesh(collisionMesh), Vector3(0, 0, 0), "static: yes");

mcaden

25-10-2008 06:03:48

Because you're loading the terrain's physics, but not the actual mesh that Ogre uses.

whw

26-10-2008 23:52:16

thank you your reply,i want to cheak my terrain collision with my car and not use floor.