Table of Contents

Class TransformComponent

Namespace
Crux.Components
Assembly
Crux.dll

Handles position, rotation, and scale data.

public class TransformComponent : Component
Inheritance
TransformComponent
Inherited Members

Remarks

Frequently relays updates when data changes.

Constructors

TransformComponent(GameObject)

public TransformComponent(GameObject gameObject)

Parameters

gameObject GameObject

Fields

Changed

public Action? Changed

Field Value

Action

Properties

Forward

public Vector3 Forward { get; }

Property Value

Vector3

LocalEulerAngles

public Vector3 LocalEulerAngles { get; set; }

Property Value

Vector3

LocalPosition

public Vector3 LocalPosition { get; set; }

Property Value

Vector3

LocalRotation

public Quaternion LocalRotation { get; set; }

Property Value

Quaternion

ModelMatrix

public Matrix4 ModelMatrix { get; }

Property Value

Matrix4

Parent

public TransformComponent Parent { get; set; }

Property Value

TransformComponent

Right

public Vector3 Right { get; }

Property Value

Vector3

Scale

public Vector3 Scale { get; set; }

Property Value

Vector3

Up

public Vector3 Up { get; }

Property Value

Vector3

WorldEulerAngles

public Vector3 WorldEulerAngles { get; set; }

Property Value

Vector3

WorldPosition

public Vector3 WorldPosition { get; set; }

Property Value

Vector3

WorldRotation

public Quaternion WorldRotation { get; set; }

Property Value

Quaternion

Methods

Clone(GameObject)

public override Component Clone(GameObject gameObject)

Parameters

gameObject GameObject

Returns

Component

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.