Table of Contents

Class Transform

Namespace
BasilEngine.Components
Assembly
BasilEngine.dll
[NativeHeader("Bindings/ManagedTransform.hpp")]
[NativeClass("ManagedTransform", ".")]
public class Transform : Component
Inheritance
Transform
Inherited Members

Constructors

Transform(ulong)

Creates a managed transform bound to an existing native object.

public Transform(ulong handle)

Parameters

handle ulong

Native game object handle.

Properties

forward

Forward direction of the transform in world space.

public Vector3 forward { get; }

Property Value

Vector3

position

World position of the transform.

public Vector3 position { get; set; }

Property Value

Vector3

right

Right direction of the transform in world space.

public Vector3 right { get; }

Property Value

Vector3

rotation

Euler rotation of the transform in degrees.

public Vector3 rotation { get; set; }

Property Value

Vector3

scale

Local scale of the transform.

public Vector3 scale { get; set; }

Property Value

Vector3

up

Up direction of the transform in world space.

public Vector3 up { get; }

Property Value

Vector3

Methods

GetForwardInternal(ulong, out float, out float, out float)

[NativeMethod("GetForward")]
[StaticAccessor("ManagedTransform", StaticAccessorType.DoubleColon)]
public static extern void GetForwardInternal(ulong handle, out float x, out float y, out float z)

Parameters

handle ulong
x float
y float
z float

GetPosition(ulong, out float, out float, out float)

[NativeMethod("GetPosition")]
[StaticAccessor("ManagedTransform", StaticAccessorType.DoubleColon)]
public static extern void GetPosition(ulong handle, out float x, out float y, out float z)

Parameters

handle ulong
x float
y float
z float

GetRightInternal(ulong, out float, out float, out float)

[NativeMethod("GetRight")]
[StaticAccessor("ManagedTransform", StaticAccessorType.DoubleColon)]
public static extern void GetRightInternal(ulong handle, out float x, out float y, out float z)

Parameters

handle ulong
x float
y float
z float

GetRotationInternal(ulong, out float, out float, out float)

[NativeMethod("GetRotation")]
[StaticAccessor("ManagedTransform", StaticAccessorType.DoubleColon)]
public static extern void GetRotationInternal(ulong handle, out float x, out float y, out float z)

Parameters

handle ulong
x float
y float
z float

GetScaleInternal(ulong, out float, out float, out float)

[NativeMethod("GetScale")]
[StaticAccessor("ManagedTransform", StaticAccessorType.DoubleColon)]
public static extern void GetScaleInternal(ulong handle, out float x, out float y, out float z)

Parameters

handle ulong
x float
y float
z float

GetUpInternal(ulong, out float, out float, out float)

[NativeMethod("GetUp")]
[StaticAccessor("ManagedTransform", StaticAccessorType.DoubleColon)]
public static extern void GetUpInternal(ulong handle, out float x, out float y, out float z)

Parameters

handle ulong
x float
y float
z float

SetPosition(ulong, float, float, float)

[NativeMethod("SetPosition")]
[StaticAccessor("ManagedTransform", StaticAccessorType.DoubleColon)]
public static extern void SetPosition(ulong handle, float x, float y, float z)

Parameters

handle ulong
x float
y float
z float

SetRotationInternal(ulong, float, float, float)

[NativeMethod("SetRotation")]
[StaticAccessor("ManagedTransform", StaticAccessorType.DoubleColon)]
public static extern void SetRotationInternal(ulong handle, float x, float y, float z)

Parameters

handle ulong
x float
y float
z float

SetScaleInternal(ulong, float, float, float)

[NativeMethod("SetScale")]
[StaticAccessor("ManagedTransform", StaticAccessorType.DoubleColon)]
public static extern void SetScaleInternal(ulong handle, float x, float y, float z)

Parameters

handle ulong
x float
y float
z float