When using this:
Wheeldumy1.transform.Rotate(0.0,0.0,motorSpeed);
I am getting this error:
transform.localRotation assign attempt for ‘Wheeldumy1’ is not valid. Input rotation is { NaN, NaN, NaN, NaN }.
I don’t understand what is wrong. Any idea?
When using this:
Wheeldumy1.transform.Rotate(0.0,0.0,motorSpeed);
I am getting this error:
transform.localRotation assign attempt for ‘Wheeldumy1’ is not valid. Input rotation is { NaN, NaN, NaN, NaN }.
I don’t understand what is wrong. Any idea?
you need to give the values as a part of a Vector3
http://docs.unity3d.com/Documentation/ScriptReference/Vector3.Vector3.html
Excuse me, but you can use perfectly this:
transform.Rotate(1.0,0.0,0.0);
In fact I am using this in another gameobject without any error.:shock:
Read farther down the page; there are additional overloads.
–Eric