Table of Contents

Struct Transforms

Namespace
ReFuel.Scenegraph
Assembly
ReFuel.dll
[SystemData(typeof(TransformSystem))]
public struct Transforms : ISystemData<Transforms, TransformSystem>, ISystemData<Transforms, TransformSystem, Transforms>, ISystemData, ISystemDataCloneable<Transforms>
Implements
Inherited Members

Constructors

Transforms()

public Transforms()

Fields

Default

public static readonly Transforms Default

Field Value

Transforms

Properties

LocalMatrix

public Matrix4 LocalMatrix { get; }

Property Value

Matrix4

ModelMatrix

public Matrix4 ModelMatrix { get; }

Property Value

Matrix4

Owner

The entity that owns this data.

public WeakReference<Entity> Owner { readonly get; set; }

Property Value

WeakReference<Entity>

Position

public Vector3 Position { get; set; }

Property Value

Vector3

Rotation

public Quaternion Rotation { get; set; }

Property Value

Quaternion

Scale

public Vector3 Scale { get; set; }

Property Value

Vector3

System

A reference to the system owning this data.

public SystemBase System { readonly get; set; }

Property Value

SystemBase

Methods

Clone(out Transforms, WeakReference<Entity>, SystemBase)

Clone the system data.

public void Clone(out Transforms clone, WeakReference<Entity> owner, SystemBase system)

Parameters

clone Transforms

The cloned data.

owner WeakReference<Entity>

New owner of the data.

system SystemBase

The system that is cloning the data.

Events

PositionChanged

public event HookHandler<ChangeEventArgs<Vector3>> PositionChanged

Event Type

HookHandler<ChangeEventArgs<Vector3>>

RotationChanged

public event HookHandler<ChangeEventArgs<Quaternion>> RotationChanged

Event Type

HookHandler<ChangeEventArgs<Quaternion>>

ScaleChanged

public event HookHandler<ChangeEventArgs<Vector3>> ScaleChanged

Event Type

HookHandler<ChangeEventArgs<Vector3>>