Struct Transform¶
Namespace: Apogee.Ecs
Assembly: Apogee.Ecs.dll
Where an entity is, relative to its parent (the ChildOf relationship); for an entity with no parent, in the world. The position
is a Add) has no size. the world's transform system keeps
public struct Transform
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors¶
Transform(Double3, Quaternion, Vector3)¶
public Transform(Double3 position, Quaternion rotation, Vector3 scale)
Parameters¶
position Double3
rotation Quaternion
scale Vector3
Fields¶
Position¶
Relative to the parent; scripts see it as a vector.
public Double3 Position
Field Value¶
Rotation¶
public Quaternion Rotation
Field Value¶
Scale¶
Per axis; there is no shear, see
public Vector3 Scale
Field Value¶
Properties¶
Identity¶
public static Transform Identity { get; }
Property Value¶
Methods¶
At(Double3)¶
public static Transform At(Double3 position)
Parameters¶
position Double3
Returns¶
From(in Trs)¶
public static Transform From(in Trs value)
Parameters¶
value Trs
Returns¶
ToTrs()¶
public readonly Trs ToTrs()