delete wheel

Software: Away3D 4.x

zbw, Newbie
Posted: 20 December 2011 05:03 AM   Total Posts: 12

I need to change the wheel radius, the radius seems not directly modified, so the need to remove the wheels, then add the new four wheels. I ask, what the wheels removed.
  Thank you

   

John Brookes, Moderator
Posted: 20 December 2011 11:07 AM   Total Posts: 732   [ # 1 ]

you can change the wheels radius
eg
yourWheelMesh.scale(newRadius / oldRadius)
yourAWPRaycastVehicle.getWheelInfo(0).wheelsRadius = newRadius;

Just do the same for the other wheels
yourAWPRaycastVehicle.getWheelInfo( 1 )
...

   

zbw, Newbie
Posted: 21 December 2011 03:49 AM   Total Posts: 12   [ # 2 ]

“MyWheelMesh.scale (Num)” has the effect of the naked eye, why should “myAWPRaycastVehicle.getWheelInfo (0). WheelsRadius = newRadius;” this, what benefits, if you do not do any harm?

Thank you

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X