Module spatial

Consts

NOTIFICATION_TRANSFORM_CHANGED* = 29'i64
NOTIFICATION_ENTER_WORLD* = 41'i64
NOTIFICATION_EXIT_WORLD* = 42'i64
NOTIFICATION_VISIBILITY_CHANGED* = 43'i64

Procs

proc transform*(self: Spatial): Transform {.
gcsafe, locks: 0
.}
proc `transform =`*(self: Spatial; val: Transform) {.
gcsafe, locks: 0
.}
proc globalTransform*(self: Spatial): Transform {.
gcsafe, locks: 0
.}
proc `globalTransform =`*(self: Spatial; val: Transform) {.
gcsafe, locks: 0
.}
proc translation*(self: Spatial): Vector3 {.
gcsafe, locks: 0
.}
proc `translation =`*(self: Spatial; val: Vector3) {.
gcsafe, locks: 0
.}
proc rotationDeg*(self: Spatial): Vector3 {.
gcsafe, locks: 0
.}
proc `rotationDeg =`*(self: Spatial; val: Vector3) {.
gcsafe, locks: 0
.}
proc rotation*(self: Spatial): Vector3 {.
gcsafe, locks: 0
.}
proc `rotation =`*(self: Spatial; val: Vector3) {.
gcsafe, locks: 0
.}
proc scale*(self: Spatial): Vector3 {.
gcsafe, locks: 0
.}
proc `scale =`*(self: Spatial; val: Vector3) {.
gcsafe, locks: 0
.}
proc visible*(self: Spatial): bool {.
gcsafe, locks: 0
.}
proc `visible =`*(self: Spatial; val: bool) {.
gcsafe, locks: 0
.}
proc getParentSpatial*(self: Spatial): Spatial {.
gcsafe, locks: 0
.}
proc setIgnoreTransformNotification*(self: Spatial; enabled: bool) {.
gcsafe, locks: 0
.}
proc setAsToplevel*(self: Spatial; enable: bool) {.
gcsafe, locks: 0
.}
proc isSetAsToplevel*(self: Spatial): bool {.
gcsafe, locks: 0
.}
proc getWorld*(self: Spatial): World {.
gcsafe, locks: 0
.}
proc updateGizmoImpl*(self: Spatial) {.
gcsafe, locks: 0
.}
proc setGizmo*(self: Spatial; gizmo: SpatialGizmo) {.
gcsafe, locks: 0
.}
proc getGizmo*(self: Spatial): SpatialGizmo {.
gcsafe, locks: 0
.}
proc isVisibleInTree*(self: Spatial): bool {.
gcsafe, locks: 0
.}
proc show*(self: Spatial) {.
gcsafe, locks: 0
.}
proc hide*(self: Spatial) {.
gcsafe, locks: 0
.}
proc setNotifyLocalTransform*(self: Spatial; enable: bool) {.
gcsafe, locks: 0
.}
proc isLocalTransformNotificationEnabled*(self: Spatial): bool {.
gcsafe, locks: 0
.}
proc setNotifyTransform*(self: Spatial; enable: bool) {.
gcsafe, locks: 0
.}
proc isTransformNotificationEnabled*(self: Spatial): bool {.
gcsafe, locks: 0
.}
proc rotate*(self: Spatial; normal: Vector3; radians: float64) {.
gcsafe, locks: 0
.}
proc globalRotate*(self: Spatial; normal: Vector3; radians: float64) {.
gcsafe, locks: 0
.}
proc rotateX*(self: Spatial; radians: float64) {.
gcsafe, locks: 0
.}
proc rotateY*(self: Spatial; radians: float64) {.
gcsafe, locks: 0
.}
proc rotateZ*(self: Spatial; radians: float64) {.
gcsafe, locks: 0
.}
proc translate*(self: Spatial; offset: Vector3) {.
gcsafe, locks: 0
.}
proc globalTranslate*(self: Spatial; offset: Vector3) {.
gcsafe, locks: 0
.}
proc orthonormalize*(self: Spatial) {.
gcsafe, locks: 0
.}
proc setIdentity*(self: Spatial) {.
gcsafe, locks: 0
.}
proc lookAt*(self: Spatial; target: Vector3; up: Vector3) {.
gcsafe, locks: 0
.}
proc lookAtFromPos*(self: Spatial; pos: Vector3; target: Vector3; up: Vector3) {.
gcsafe, locks: 0
.}
proc toLocal*(self: Spatial; globalPoint: Vector3): Vector3 {.
gcsafe, locks: 0
.}
proc toGlobal*(self: Spatial; localPoint: Vector3): Vector3 {.
gcsafe, locks: 0
.}

Methods

method setRotationDeg*(self: Spatial; rotationDeg: Vector3) {.
gcsafe, locks: 0, base
.}
method getRotationDeg*(self: Spatial): Vector3 {.
gcsafe, locks: 0, base
.}
method updateGizmo*(self: Spatial) {.
gcsafe, locks: 0, base
.}