somehow alter the Friction

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
sazon
Posts: 15
Joined: Thu Jun 23, 2011 6:07 pm

somehow alter the Friction

Post by sazon »

Hi I have my world, and on the various fields rolling down there, but sometimes knock them completely detenerce take a long time, so I'm looking for a way to make them stop much faster.

also want to have two surfaces, one runs more quickly than another. as happens in the real world.

How does this?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: somehow alter the Friction

Post by Norbo »

All entities have a Material property, which has kinetic and static friction coefficients. StaticMesh/Terrain/InstancedMesh also have Materials. Increasing the coefficients increases the amount of friction.
sazon
Posts: 15
Joined: Thu Jun 23, 2011 6:07 pm

Re: somehow alter the Friction

Post by sazon »

objects after the collision takes to stop altogether.
is there another way to stop faster.

I use 1.0f Friction in the fields and graze the wall but not enough
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: somehow alter the Friction

Post by Norbo »

If you just want more friction, just keep increasing the friction :)

It supports values above 1.
Post Reply