STATE_object_set_friction

 

 



  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 ...

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com