Rotate the object around an arbitrary axis using a Quaternion.
Amount and direction to rotate.
Assigns the value as new forward (look at) vector.
Converts the provided world rotation to a space relative to the provided parent, and sets it as the current transform's rotation.
rotation to set.
Parent relative to which to convert the rotation to.
Staticis
The Transform contains information about 3D object's position, rotation and scale. The class follows the 'copy-on-write' pattern, which means that every operation returns a copy of the transform with updated values. It also implies that the values of the transform cannot be directly modified.
The concept of immutability improves sharing of objects as all types in TypeScript are assigned by identity, instead of by-value (e.g. a copy) as in other programming languages like C.