Re: Re[2]: car wheels problem

Date : Mon, 2 Jan 2006 20:38:53 +0100
To : XSI(at)Softimage.COM
From : guillaume laforge <guillaume.laforge.3d(at)gmail.com>
Subject : Re: Re[2]: car wheels problem
Hi Christopher,
 
Here is a sample scene : http://www.vol2nuit.fr/la_roue.scn
 
Feel free to study the setup. And take a look at "Scripted operator" in the doc ;-)
 
 
Cheers
 
Guillaume

 
2006/1/2, Christopher <walksfar(at)netscape.ca>:

Hello guillaume, I don't think my wheel is radius is of 1.  So I apply this:

 

Out.Value = ((Incrvlist.value.Geometry.Length*Inperc.value)/((2*3.14*YOUR WHEEL RADIUS)*100))*360


To the wheels of the car? In the script editor, I am in need of getting this done so I appreciate your help.




Monday, January 2, 2006, 3:06:33 AM, you wrote:


>

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





-- 

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.