STATE_camera_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 acts like pressing on the gas
   The exact calculation.
   Each render the absolute_speed is multiply with (1-friction).
  
   Note, a negative number can used for increasing the speed.
   a friction of -1 will double the speed.
   -2 will multiply the speed by three each rendering.
   so choose 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