Skip to content

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 : the world is double precision, so a position stays exact for thousands of kilometres. Set the to one: a zeroed transform (from Add) has no size. the world's transform system keeps up to date from it.

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

Double3

Rotation

public Quaternion Rotation

Field Value

Quaternion

Scale

Per axis; there is no shear, see .

public Vector3 Scale

Field Value

Vector3

Properties

Identity

public static Transform Identity { get; }

Property Value

Transform

Methods

At(Double3)

public static Transform At(Double3 position)

Parameters

position Double3

Returns

Transform

From(in Trs)

public static Transform From(in Trs value)

Parameters

value Trs

Returns

Transform

ToTrs()

public readonly Trs ToTrs()

Returns

Trs