Collision between multiple Models, Camera and Terrain ?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Guest

Collision between multiple Models, Camera and Terrain ?

Post by Guest »

I have several Models (IAnimatedMeshSceneNodes) placed on a Terrain (IAnimatedMesh) and want them to collide with each other and the terrain.

My first approach was to create TriangleSelectors from the models BoundingBoxes and an OctTreeTriangleSelector for the Terrain.
I have added all TriangleSelectors to my MetaTriangleSelector and then created
CollisionResponseAnimators for all my Models using the MetaTriangleSelector, but now my models seem to be stuck...

They are colliding with the terrain, i place them somewhere above the terrain and they fall and land on the terrain, but they do not move.

In my first test i only created a TriangleSelector for the Terrain and used that TriangleSelector to create the CollisionResponseAnimators for my models... that worked for collision and movement on the terrain, but they did not collide with each other...

Has anyone a working solution for multiple-model-collision or an idea what i am doing wrong ???

mfg
Dennis
Post Reply