Class LunyTransform
Engine-agnostic proxy for native transform types (UnityEngine.Transform, Godot.Node3D, etc.).
public abstract class LunyTransform
- Inheritance
-
objectLunyTransform
Constructors
LunyTransform()
protected LunyTransform()
Properties
Back
public abstract LunyVector3 Back { get; }
Property Value
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
EulerAngles
public abstract LunyVector3 EulerAngles { get; set; }
Property Value
Forward
public abstract LunyVector3 Forward { get; }
Property Value
Left
public abstract LunyVector3 Left { get; }
Property Value
LocalEulerAngles
public abstract LunyVector3 LocalEulerAngles { get; set; }
Property Value
LocalPosition
public abstract LunyVector3 LocalPosition { get; set; }
Property Value
LocalRotation
public abstract LunyQuaternion LocalRotation { get; set; }
Property Value
LocalScale
public abstract LunyVector3 LocalScale { get; set; }
Property Value
NativeTransform
public abstract object NativeTransform { get; }
Property Value
- object
Parent
public abstract LunyTransform Parent { get; set; }
Property Value
Position
public abstract LunyVector3 Position { get; set; }
Property Value
Right
public abstract LunyVector3 Right { get; }
Property Value
Root
public abstract LunyTransform Root { get; }
Property Value
Rotation
public abstract LunyQuaternion Rotation { get; set; }
Property Value
Up
public abstract LunyVector3 Up { get; }
Property Value
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
indexint
Returns
GetSiblingIndex()
public abstract int GetSiblingIndex()
Returns
- int
InverseTransformDirection(LunyVector3)
public abstract LunyVector3 InverseTransformDirection(LunyVector3 direction)
Parameters
directionLunyVector3
Returns
InverseTransformPoint(LunyVector3)
public abstract LunyVector3 InverseTransformPoint(LunyVector3 point)
Parameters
pointLunyVector3
Returns
InverseTransformVector(LunyVector3)
public abstract LunyVector3 InverseTransformVector(LunyVector3 vector)
Parameters
vectorLunyVector3
Returns
IsChildOf(LunyTransform)
public abstract bool IsChildOf(LunyTransform parent)
Parameters
parentLunyTransform
Returns
- bool
LookAt(ILunyObject)
public abstract void LookAt(ILunyObject target)
Parameters
targetILunyObject
LookAt(ILunyObject, LunyVector3)
public abstract void LookAt(ILunyObject target, LunyVector3 worldUp)
Parameters
targetILunyObjectworldUpLunyVector3
LookAt(LunyVector3)
public abstract void LookAt(LunyVector3 worldPosition)
Parameters
worldPositionLunyVector3
LookAt(LunyVector3, LunyVector3)
public abstract void LookAt(LunyVector3 worldPosition, LunyVector3 worldUp)
Parameters
worldPositionLunyVector3worldUpLunyVector3
OrbitAround(LunyVector3, LunyVector3, float)
public abstract void OrbitAround(LunyVector3 worldPoint, LunyVector3 axis, float angle)
Parameters
worldPointLunyVector3axisLunyVector3anglefloat
Rotate(LunyVector3, LunyTransformSpace)
public abstract void Rotate(LunyVector3 eulerAngles, LunyTransformSpace space = LunyTransformSpace.Self)
Parameters
eulerAnglesLunyVector3spaceLunyTransformSpace
Rotate(LunyVector3, float, LunyTransformSpace)
public abstract void Rotate(LunyVector3 axis, float angle, LunyTransformSpace space = LunyTransformSpace.Self)
Parameters
axisLunyVector3anglefloatspaceLunyTransformSpace
SetAsFirstSibling()
public abstract void SetAsFirstSibling()
SetAsLastSibling()
public abstract void SetAsLastSibling()
SetParent(LunyTransform, bool)
public abstract void SetParent(LunyTransform parent, bool worldPositionStays = true)
Parameters
parentLunyTransformworldPositionStaysbool
SetSiblingIndex(int)
public abstract void SetSiblingIndex(int index)
Parameters
indexint
TransformDirection(LunyVector3)
public abstract LunyVector3 TransformDirection(LunyVector3 direction)
Parameters
directionLunyVector3
Returns
TransformPoint(LunyVector3)
public abstract LunyVector3 TransformPoint(LunyVector3 point)
Parameters
pointLunyVector3
Returns
TransformVector(LunyVector3)
public abstract LunyVector3 TransformVector(LunyVector3 vector)
Parameters
vectorLunyVector3
Returns
Translate(LunyVector2, LunyTransformSpace)
public abstract void Translate(LunyVector2 translation, LunyTransformSpace space = LunyTransformSpace.Self)
Parameters
translationLunyVector2spaceLunyTransformSpace
Translate(LunyVector3, LunyTransformSpace)
public abstract void Translate(LunyVector3 translation, LunyTransformSpace space = LunyTransformSpace.Self)
Parameters
translationLunyVector3spaceLunyTransformSpace