shap of beizer

philipk

08-11-2007 00:55:09

In my game, the track is created by beizer.how can i make it collide with other objects ?

alienskull

08-11-2007 01:01:19

well if your beizer could be turned into a mesh you could use:
physicsScene->createActor("track", new NxOgre::TriangleMeshShape("beizer.mesh"), VxVec3(0, 0, 0), actorParams);

just off the top of my head.. there is most likely a better way

EDIT:
I just noticed a function "NxOgre::NxGenerateTriangleMeshFromVertices" that may be able to help you.. but I have never used it so I have no idea.

philipk

08-11-2007 11:13:06

it's a good idea,but how can i get the vertices and faces in beizer?
i think NxOgre::NxGenerateTriangleMeshFromVertices() need those parameters。 :?