Class Transform4
Transformation component in 4D
public class Transform4 : MonoBehaviour
Namespace Engine4
Inheritance
Constructors
Transform4()
public Transform4()
Properties
eulerAngles
Rotation (in euler) to world space
public Euler4 eulerAngles { get; set; }
forward
Get the forward (Z+) world axis of the transform
public Vector4 forward { get; }
localEulerAngles
Rotation (in euler) relative to parent
public Euler4 localEulerAngles { get; set; }
localPosition
Position relative to parent
public Vector4 localPosition { get; set; }
localRotation
Rotation (in matrix) relative to parent
public Matrix4 localRotation { get; set; }
localScale
Scaling value.
public Vector4 localScale { get; set; }
Remarks
Scaling won't affect to its children.
localToWorldMatrix
The analogous localToWorldMatrix just for 4 manipulations
public Matrix4x5 localToWorldMatrix { get; }
Remarks
Scale doesn't included in the matrix
overward
Get the overward (W+) world axis of the transform
public Vector4 overward { get; }
parent
Get Transform4 in ancestor. Note that not every objects have Transform4.
public Transform4 parent { get; }
position
Position relative to world space
public Vector4 position { get; set; }
rightward
Get the right (X+) world axis of the transform
public Vector4 rightward { get; }
rotation
Rotation relative to world space
public Matrix4 rotation { get; set; }
update
Event to be fired when this transform changed.
public TransformCallback update { get; set; }
upward
Get the up (Y+) world axis of the transform
public Vector4 upward { get; }
worldToLocalMatrix
The analogous worldToLocalMatrix just for 4 manipulations
public Matrix4x5 worldToLocalMatrix { get; }
Remarks
Scale doesn't included in the matrix
Methods
Rotate(Euler4, Space4)
Rotate this transform (in euler) in given space orientation.
public void Rotate(Euler4 value, Space4 space)
Rotate(Matrix4, Space4)
Rotate this transform (in matrix) in given space orientation.
public void Rotate(Matrix4 value, Space4 space)
Rotate(Quaternion, Space4)
Rotate this transform (in 3D quaternion) in given space orientation.
public void Rotate(Quaternion value, Space4 space)
Translate(Vector4, Space4)
Translate this transform in given space orientation.
public void Translate(Vector4 value, Space4 space)