Wheels and friction in different surfaces.
Posted: Sat May 19, 2012 10:05 am
Hi,
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
I expect the car to have no traction at all, but it has. In fact it has the same as if i leve it iat default values. Is this related to the fact that Wheels behave differently friction wise that other Entities?
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.
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.