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
protected LunyTransform()
Properties
public abstract LunyVector3 Back { get; }
Property Value
- LunyVector3
public abstract Int32 ChildCount { get; }
Property Value
- Int32
public abstract IEnumerable<LunyTransform> Children { get; }
Property Value
- IEnumerable<LunyTransform>
public abstract LunyVector3 Down { get; }
Property Value
- LunyVector3
public abstract LunyVector3 EulerAngles { get; set; }
Property Value
- LunyVector3
public abstract LunyVector3 Forward { get; }
Property Value
- LunyVector3
public abstract LunyVector3 Left { get; }
Property Value
- LunyVector3
public abstract LunyVector3 LocalEulerAngles { get; set; }
Property Value
- LunyVector3
public abstract LunyVector3 LocalPosition { get; set; }
Property Value
- LunyVector3
public abstract LunyQuaternion LocalRotation { get; set; }
Property Value
- LunyQuaternion
public abstract LunyVector3 LocalScale { get; set; }
Property Value
- LunyVector3
public abstract Object NativeTransform { get; }
Property Value
- Object
public abstract LunyTransform Parent { get; set; }
Property Value
- LunyTransform
public abstract LunyVector3 Position { get; set; }
Property Value
- LunyVector3
public abstract LunyVector3 Right { get; }
Property Value
- LunyVector3
public abstract LunyTransform Root { get; }
Property Value
- LunyTransform
public abstract LunyQuaternion Rotation { get; set; }
Property Value
- LunyQuaternion
public abstract LunyVector3 Up { get; }
Property Value
- LunyVector3
Methods
Returns
- T
Type Parameters
T
public abstract void DetachChildren()
public abstract LunyTransform GetChild(Int32 index)
Parameters
| Type |
Name |
Description |
- Int32
|
index |
|
Returns
- LunyTransform
public abstract Int32 GetSiblingIndex()
Returns
- Int32
public abstract LunyVector3 InverseTransformDirection(LunyVector3 direction)
Parameters
Returns
- LunyVector3
public abstract LunyVector3 InverseTransformPoint(LunyVector3 point)
Parameters
Returns
- LunyVector3
public abstract LunyVector3 InverseTransformVector(LunyVector3 vector)
Parameters
Returns
- LunyVector3
public abstract Boolean IsChildOf(LunyTransform parent)
Parameters
Returns
- Boolean
public abstract void LookAt(ILunyObject target)
Parameters
public abstract void LookAt(ILunyObject target, LunyVector3 worldUp)
Parameters
public abstract void LookAt(LunyVector3 worldPosition)
Parameters
public abstract void LookAt(LunyVector3 worldPosition, LunyVector3 worldUp)
Parameters
public abstract void OrbitAround(LunyVector3 worldPoint, LunyVector3 axis, Single angle)
Parameters
public abstract void Rotate(LunyVector3 eulerAngles, LunyTransformSpace space = LunyTransformSpace.Self)
Parameters
public abstract void Rotate(LunyVector3 axis, Single angle, LunyTransformSpace space = LunyTransformSpace.Self)
Parameters
public abstract void SetAsFirstSibling()
public abstract void SetAsLastSibling()
public abstract void SetParent(LunyTransform parent, Boolean worldPositionStays = true)
Parameters
| Type |
Name |
Description |
- LunyTransform
|
parent |
|
- Boolean
|
worldPositionStays |
|
public abstract void SetSiblingIndex(Int32 index)
Parameters
| Type |
Name |
Description |
- Int32
|
index |
|
public abstract LunyVector3 TransformDirection(LunyVector3 direction)
Parameters
Returns
- LunyVector3
public abstract LunyVector3 TransformPoint(LunyVector3 point)
Parameters
Returns
- LunyVector3
public abstract LunyVector3 TransformVector(LunyVector3 vector)
Parameters
Returns
- LunyVector3
public abstract void Translate(LunyVector2 translation, LunyTransformSpace space = LunyTransformSpace.Self)
Parameters
public abstract void Translate(LunyVector3 translation, LunyTransformSpace space = LunyTransformSpace.Self)
Parameters