there is also a mesh array standard set into the as3 outputs.
myPrefaboutput.meshes --> array with all your meshes

If you loop over it, you also can test on the names that you have either 
defined in Prefab or your original 3d generator.

if you have named the container of the body, and its holding more parts such as 
interior, there is also in the as a containers array.

Fabrice


On Jan 7, 2011, at 8:56 PM, Aji Pamungkas wrote:

> Hola, amigo... :D
> 
> You can access the tyres, by using "getChildByName" after your model has been 
> loaded. For example :
>   var leftTyre:Mesh = myCarModel.getChildByName("leftTyre") as Mesh;
>   leftTyre.rotationX += 1;
> 
> On Fri, Jan 7, 2011 at 6:27 PM, amigo <[email protected]> wrote:
> Amazing this Prefab.
> I allready have my car with four wheels independent from Prefab loaded
> correctly in as3, after a few issues..=)
> 
> I´m trying of course that the tyres roll and turn but i don´t find how
> refer to that object. The car.as is already following the physics, but
> how can be done to the tyres?.
> 
> This is going smooth and easy, thanks to all..
> 
> 
> 
> -- 
> Aji Pamungkas
> 

Reply via email to