Table of Contents

Class LunyTransform

Namespace
Luny.Engine.Bridge
Assembly
Luny.dll

Engine-agnostic proxy for native transform types (UnityEngine.Transform, Godot.Node3D, etc.).

public abstract class LunyTransform
Inheritance
object
LunyTransform

Constructors

LunyTransform()

protected LunyTransform()

Properties

Back

public abstract LunyVector3 Back { get; }

Property Value

LunyVector3

ChildCount

public abstract int ChildCount { get; }

Property Value

int

Children

public abstract IEnumerable<LunyTransform> Children { get; }

Property Value

IEnumerable<LunyTransform>

Down

public abstract LunyVector3 Down { get; }

Property Value

LunyVector3

EulerAngles

public abstract LunyVector3 EulerAngles { get; set; }

Property Value

LunyVector3

Forward

public abstract LunyVector3 Forward { get; }

Property Value

LunyVector3

Left

public abstract LunyVector3 Left { get; }

Property Value

LunyVector3

LocalEulerAngles

public abstract LunyVector3 LocalEulerAngles { get; set; }

Property Value

LunyVector3

LocalPosition

public abstract LunyVector3 LocalPosition { get; set; }

Property Value

LunyVector3

LocalRotation

public abstract LunyQuaternion LocalRotation { get; set; }

Property Value

LunyQuaternion

LocalScale

public abstract LunyVector3 LocalScale { get; set; }

Property Value

LunyVector3

NativeTransform

public abstract object NativeTransform { get; }

Property Value

object

Parent

public abstract LunyTransform Parent { get; set; }

Property Value

LunyTransform

Position

public abstract LunyVector3 Position { get; set; }

Property Value

LunyVector3

Right

public abstract LunyVector3 Right { get; }

Property Value

LunyVector3

Root

public abstract LunyTransform Root { get; }

Property Value

LunyTransform

Rotation

public abstract LunyQuaternion Rotation { get; set; }

Property Value

LunyQuaternion

Up

public abstract LunyVector3 Up { get; }

Property Value

LunyVector3

Methods

As<T>()

public T As<T>()

Returns

T

Type Parameters

T

DetachChildren()

public abstract void DetachChildren()

GetChild(int)

public abstract LunyTransform GetChild(int index)

Parameters

index int

Returns

LunyTransform

GetSiblingIndex()

public abstract int GetSiblingIndex()

Returns

int

InverseTransformDirection(LunyVector3)

public abstract LunyVector3 InverseTransformDirection(LunyVector3 direction)

Parameters

direction LunyVector3

Returns

LunyVector3

InverseTransformPoint(LunyVector3)

public abstract LunyVector3 InverseTransformPoint(LunyVector3 point)

Parameters

point LunyVector3

Returns

LunyVector3

InverseTransformVector(LunyVector3)

public abstract LunyVector3 InverseTransformVector(LunyVector3 vector)

Parameters

vector LunyVector3

Returns

LunyVector3

IsChildOf(LunyTransform)

public abstract bool IsChildOf(LunyTransform parent)

Parameters

parent LunyTransform

Returns

bool

LookAt(ILunyObject)

public abstract void LookAt(ILunyObject target)

Parameters

target ILunyObject

LookAt(ILunyObject, LunyVector3)

public abstract void LookAt(ILunyObject target, LunyVector3 worldUp)

Parameters

target ILunyObject
worldUp LunyVector3

LookAt(LunyVector3)

public abstract void LookAt(LunyVector3 worldPosition)

Parameters

worldPosition LunyVector3

LookAt(LunyVector3, LunyVector3)

public abstract void LookAt(LunyVector3 worldPosition, LunyVector3 worldUp)

Parameters

worldPosition LunyVector3
worldUp LunyVector3

OrbitAround(LunyVector3, LunyVector3, float)

public abstract void OrbitAround(LunyVector3 worldPoint, LunyVector3 axis, float angle)

Parameters

worldPoint LunyVector3
axis LunyVector3
angle float

Rotate(LunyVector3, LunyTransformSpace)

public abstract void Rotate(LunyVector3 eulerAngles, LunyTransformSpace space = LunyTransformSpace.Self)

Parameters

eulerAngles LunyVector3
space LunyTransformSpace

Rotate(LunyVector3, float, LunyTransformSpace)

public abstract void Rotate(LunyVector3 axis, float angle, LunyTransformSpace space = LunyTransformSpace.Self)

Parameters

axis LunyVector3
angle float
space LunyTransformSpace

SetAsFirstSibling()

public abstract void SetAsFirstSibling()

SetAsLastSibling()

public abstract void SetAsLastSibling()

SetParent(LunyTransform, bool)

public abstract void SetParent(LunyTransform parent, bool worldPositionStays = true)

Parameters

parent LunyTransform
worldPositionStays bool

SetSiblingIndex(int)

public abstract void SetSiblingIndex(int index)

Parameters

index int

TransformDirection(LunyVector3)

public abstract LunyVector3 TransformDirection(LunyVector3 direction)

Parameters

direction LunyVector3

Returns

LunyVector3

TransformPoint(LunyVector3)

public abstract LunyVector3 TransformPoint(LunyVector3 point)

Parameters

point LunyVector3

Returns

LunyVector3

TransformVector(LunyVector3)

public abstract LunyVector3 TransformVector(LunyVector3 vector)

Parameters

vector LunyVector3

Returns

LunyVector3

Translate(LunyVector2, LunyTransformSpace)

public abstract void Translate(LunyVector2 translation, LunyTransformSpace space = LunyTransformSpace.Self)

Parameters

translation LunyVector2
space LunyTransformSpace

Translate(LunyVector3, LunyTransformSpace)

public abstract void Translate(LunyVector3 translation, LunyTransformSpace space = LunyTransformSpace.Self)

Parameters

translation LunyVector3
space LunyTransformSpace