Re[2]: car wheels problem

Date : Tue, 3 Jan 2006 10:55:36 -0500
To : guillaume laforge <XSI(at)Softimage.COM>
From : Christopher <walksfar(at)netscape.ca>
Subject : Re[2]: car wheels problem

Hello guillaume, I am not good at scripting, so I will use a path but how do I apply this script to the rotation of the wheels depending how fast the car goes?


Christopher



Monday, January 2, 2006, 3:04:11 AM, you wrote:


>

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





-- 

Best regards,

 Christopher                            mailto:walksfar(at)netscape.ca

--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.