CutsceneCmdRotate
From Headbone Creative
Revision as of 04:10, 15 April 2013 by Tyson Joehler (Talk | contribs)
This will rotate the target object to either look at the specified lookAtTarget, or by the specified number of degrees around the upAxis if no lookAtTarget is given.
Contents |
Public Variables
target : Transform
This is the object that is rotated. It must be assigned in the editor.
lookAtTarget : Transform
This may be assigned in the editor. If this is set, the object will be rotated to look towards this object. See: Transform.LookAt
rotateDegrees : float
This is how many degrees to rotate around the upAxis if lookAtTarget isn't set.
upAxis : Vector3
The axis to use for the "up" direction. In general, this should be set to Vector3.forward for 2d usage and Vector3.up for 3d usage.
rotateTime : float
This is the time in seconds to spend rotating the object.