|
I forgot :
If your wheel radius is not 1 : Out.Value = ((Incrvlist.value.Geometry.Length*Inperc.value)/((2*3.14*YOUR WHEEL RADIUS)*100))*360
2006/1/2, guillaume laforge <guillaume.laforge.3d(at)gmail.com>:
Hi Christoher,
A fast way to control the rotation of the wheel is to create a null and path constrain it along a curve ( the car trajectory ).
Then parent your wheel/box object to this null and add a scripted operator on the wheel/box rotation axis.
In this scripted op add two inputs : the path and the path percentage parameter of the null.
The script op should looks like this :
Out.Value = ((Incrvlist.value.Geometry.Length*Inperc.value)/((2*3.14)*100))*360
If you don't want to use a path to animate your object it is more complicated. You should take a look at "Getting started with scripting in xsi" from Helge Mathee, there is a good tutorial on rolling wheel with scripted op.
Cheers,
Guillaume Laforge
www.vol2nuit.fr
2006/1/2, Christopher <walksfar(at)netscape.ca>:
I have run into a problem I have 2 sets of wheels constrained to the
orientation of a box (when you rotate the box the wheels rotate) now
how do I get this box (the wheels) to follow the car so the wheels
rotate based on the speed of the car in the +Z axis?
Christophers
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi |