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
Expand Details ...
Inheritance
Object
LunyTransform

Constructors

LunyTransform()

protected LunyTransform()

Properties

Back

public abstract LunyVector3 Back { get; }

Property Value

LunyVector3

ChildCount

public abstract Int32 ChildCount { get; }

Property Value

Int32

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(Int32)

public abstract LunyTransform GetChild(Int32 index)

Parameters

Type Name Description
Int32
index

Returns

LunyTransform

GetSiblingIndex()

public abstract Int32 GetSiblingIndex()

Returns

Int32

InverseTransformDirection(LunyVector3)

public abstract LunyVector3 InverseTransformDirection(LunyVector3 direction)

Parameters

Type Name Description
LunyVector3
direction

Returns

LunyVector3

InverseTransformPoint(LunyVector3)

public abstract LunyVector3 InverseTransformPoint(LunyVector3 point)

Parameters

Type Name Description
LunyVector3
point

Returns

LunyVector3

InverseTransformVector(LunyVector3)

public abstract LunyVector3 InverseTransformVector(LunyVector3 vector)

Parameters

Type Name Description
LunyVector3
vector

Returns

LunyVector3

IsChildOf(LunyTransform)

public abstract Boolean IsChildOf(LunyTransform parent)

Parameters

Type Name Description
LunyTransform
parent

Returns

Boolean

LookAt(ILunyObject)

public abstract void LookAt(ILunyObject target)

Parameters

Type Name Description
ILunyObject
target

LookAt(ILunyObject, LunyVector3)

public abstract void LookAt(ILunyObject target, LunyVector3 worldUp)

Parameters

Type Name Description
ILunyObject
target
LunyVector3
worldUp

LookAt(LunyVector3)

public abstract void LookAt(LunyVector3 worldPosition)

Parameters

Type Name Description
LunyVector3
worldPosition

LookAt(LunyVector3, LunyVector3)

public abstract void LookAt(LunyVector3 worldPosition, LunyVector3 worldUp)

Parameters

Type Name Description
LunyVector3
worldPosition
LunyVector3
worldUp

OrbitAround(LunyVector3, LunyVector3, Single)

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

Parameters

Type Name Description
LunyVector3
worldPoint
LunyVector3
axis
Single
angle

Rotate(LunyVector3, LunyTransformSpace)

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

Parameters

Type Name Description
LunyVector3
eulerAngles
LunyTransformSpace
space

Rotate(LunyVector3, Single, LunyTransformSpace)

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

Parameters

Type Name Description
LunyVector3
axis
Single
angle
LunyTransformSpace
space

SetAsFirstSibling()

public abstract void SetAsFirstSibling()

SetAsLastSibling()

public abstract void SetAsLastSibling()

SetParent(LunyTransform, Boolean)

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

Parameters

Type Name Description
LunyTransform
parent
Boolean
worldPositionStays

SetSiblingIndex(Int32)

public abstract void SetSiblingIndex(Int32 index)

Parameters

Type Name Description
Int32
index

TransformDirection(LunyVector3)

public abstract LunyVector3 TransformDirection(LunyVector3 direction)

Parameters

Type Name Description
LunyVector3
direction

Returns

LunyVector3

TransformPoint(LunyVector3)

public abstract LunyVector3 TransformPoint(LunyVector3 point)

Parameters

Type Name Description
LunyVector3
point

Returns

LunyVector3

TransformVector(LunyVector3)

public abstract LunyVector3 TransformVector(LunyVector3 vector)

Parameters

Type Name Description
LunyVector3
vector

Returns

LunyVector3

Translate(LunyVector2, LunyTransformSpace)

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

Parameters

Type Name Description
LunyVector2
translation
LunyTransformSpace
space

Translate(LunyVector3, LunyTransformSpace)

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

Parameters

Type Name Description
LunyVector3
translation
LunyTransformSpace
space