koirat
15-02-2010 16:57:35
This might be a newbie question but.
This sometimes, gives me NAN for this.SceNode.Yaw
This works properly.
Can you tell me why ?
This sometimes, gives me NAN for this.SceNode.Yaw
this.sceneNode.Yaw(newYaw);
This works properly.
Vector3 lenghtDirection=Vector3.UNIT_Z;
Quaternion quat = new Quaternion((Radian)newYaw, Vector3.UNIT_Y);
this.sceneNode.Orientation = (this.sceneNode.InitialOrientation * lengthDirection).GetRotationTo(quat * lengthDirection);
Can you tell me why ?