I am working on a little project using BEPU for the first time.
Based on the Vehicle Demo Project, I have created a vehicle with four wheels that runs over two surfaces.
The problem is that I would like to have different behavior on each surface, and I haven't been able to achieve that. The ground over the car runs are two big StaticMeshes. If I use
Code: Select all
this.collisionMesh.Material.StaticFriction = 0.0f;
this.collisionMesh.Material.KineticFriction = 0.0f;
MaterialManager.FrictionBlendMethod = PropertyBlendMethod.Min;
Another posibility / question.
I am thinking about detecting which surface the wheel is colliding with so I can apply more sophisticated behaviors to the car (apply specific forces when the wheel rolls over certain ground and so on). How would one go around this? Collision Events on the Wheels?
Thanks in advance.