Hi folks!
I’m gonna a little crazy with this :)…
http://imageshack.us/photo/my-images/560/howtoi.jpg/
I’ve a wheel and a platform, when I rotate the wheel clockwise I want my platform moving down, and when I rotate the wheel counterclockwise I want my platform goin up.
Now I’m able to only move the platform up with this code
var wheel : Transform;
function Update () {
wheelRotation = wheel.rigidbody.angularVelocity.magnitude;
transform.Translate (Vector3.up * wheelRotation * 0.005);
}
What I need is to know what is the wheel rotation direction as a negative and positive value, and then multiply it to the translate function.
Thanks a lot ![]()