Drag force, skid

Post Reply
ENGine
Posts: 15
Joined: Thu Feb 26, 2015 7:04 am

Drag force, skid

Post by ENGine »

Hi, all.

There is an object which is controlled with applyCentralForce.
All parameters like setFriction, setRollingFriction, setRestitution, setDamping are defined by default (thus, I changed nothing).
Except for setAngularFactor, I setted up it like vec(0, 0, 0);

My problem is when I want to turn the moving object, I'm facing with skid. It looks like a car skid.
Is it possible to add drag force or minimize skid?
Or is there another way to compensate for centrifugal force?

Please, guys, advice me how I can avoid this trouble. Thanks.
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: Drag force, skid

Post by Basroil »

Both things you're talking about come down to friction, so perhaps you'll need to enable anisotropic friction. Drag can also just be modeled as a linear damping on velocity in the direction the car is going, but you'll need to be careful about implementation or else you might get bunny hopping exploits.
ENGine
Posts: 15
Joined: Thu Feb 26, 2015 7:04 am

Re: Drag force, skid

Post by ENGine »

Frankly speaking,
1) I haven't managed to setup right params for:

Code: Select all

setFriction ,setRollingFriction, setAnisotropicFriction
2) As for the method which will compensate for centrifugal force. I did my best, but there was no result.

Maybe you can help me to implement neither 1) or 2). Thanks.
Post Reply