|
| car wheel rotation script |
 |
Tue, 25 Sep 2007 02:45:57 +000 |
im a bit stuck trying to make a script that rotates my cars wheels as i move it
along an axis, i looked up a bunch tutes but im terrible at script and having
difficulties.
this is what i came up with:
*** start***
c = 2*pi*165
distInc = $Controller_Root.position.y
angleInc = degtorad(360/c)*distInc
rotate $Wheel_L_Front angleInc x_axis
rotate $Wheel_R_Front angleInc x_axis
rotate $Wheel_L_Rear angleInc x_axis
rotate $Wheel_R_Rear angleInc x_axis
*** end ***
- the $Controller_Root object is my main controller to which all car body
objects (except the wheels) are linked.
- the Wheel objects are groups, i dunno if that make a difference...
if someone can tell me what im doing wrong or decide to rewrite my script for me
;) that would be much appreciated.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|