Skip to content

Transform

Transform: the position, rotation and scale of a GameObject.

Kolpa.Engine.Transform

public sealed class Transform : IEquatable<Transform>
{
public int childCount { get; }
public Vector3 eulerAngles { get; set; }
public Vector3 forward { get; }
public GameObject gameObject { get; }
public bool IsValid { get; }
public Vector3 localEulerAngles { get; set; }
public Vector3 localPosition { get; set; }
public Quaternion localRotation { get; set; }
public Vector3 localScale { get; set; }
public Vector3 lossyScale { get; }
public Transform parent { get; }
public Vector3 position { get; set; }
public Vector3 right { get; }
public Quaternion rotation { get; set; }
public Vector3 up { get; }
public bool Equals(Transform other);
public bool Equals(object obj);
public Transform GetChild(int index);
public int GetHashCode();
public void LookAt(Vector3 target, Vector3 worldUp);
public void Rotate(float degX, float degY, float degZ);
public void Rotate(Vector3 eulers);
public void SetParent(Transform newParent, bool worldPositionStays);
public void SetPositionAndRotation(Vector3 position, Quaternion rotation);
public void Translate(float x, float y, float z);
public void Translate(Vector3 translation);
}