Transform.Rotatefunction Rotate (eulerAngles : Vector3, relativeTo : Space = Space.Self) : voidDescriptionApplies a rotation of eulerAngles.z degrees around the z axis, eulerAngles.x degrees around the x axis, and eulerAngles.y degrees around the y axis (in that order). If relativeTo is left out or set to Space.Self the rotation is applied around the transform's local axes. (The x, y and z axes shown when selecting the object inside the Scene View.) If relativeTo is Space.World the rotation is applied around the world x, y, z axes.
JavaScript
function Update() { using UnityEngine; import UnityEngine function Rotate (xAngle : float, yAngle : float, zAngle : float, relativeTo : Space = Space.Self) : voidDescriptionApplies a rotation of zAngle degrees around the z axis, xAngle degrees around the x axis, and yAngle degrees around the y axis (in that order). If relativeTo is left out or sot to Space.Self the rotation is applied around the transform's local axes. (The x, y and z axes shown when selecting the object inside the Scene View.) If relativeTo is Space.World the rotation is applied around the world x, y, z axes.
JavaScript
function Update() { using UnityEngine; import UnityEngine function Rotate (axis : Vector3, angle : float, relativeTo : Space = Space.Self) : voidDescriptionRotates the transform around axis by angle degrees. If relativeTo is left out or set to Space.Self the axis parameter is relative to the transform's local axes. (The x, y and z axes shown when selecting the object inside the Scene View.) If relativeTo is Space.World the axis parameter is relative to the world x, y, z axes.
JavaScript
function Update() { using UnityEngine; import UnityEngine |
