|
Friction is a value smaller or equal to 1
if friction==0 it means no friction
if friction==1 it means infinite friction nothing can move
if friction is smaller than 0, it will actually cause accelleration and not friction
The exact calculation.
Each render the absolute_speed is multiplied by (1-friction).
Note, a negative number can use for increasing the speed.
a friction of -1 will double the speed.
-2 will multiply the speed by three each rendering.
so choose a number carefully.
typical numbers can be 0.03 or -0.03 etc ...
|