Basis

gdext.builtin.Basis
See theBasis companion class
object Basis

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Basis.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(): Basis
def apply(x: Vector3, y: Vector3, z: Vector3): Basis

The basis with columns (axes) x, y, z.

The basis with columns (axes) x, y, z.

Attributes

def apply(axis: Vector3, angle: Float): Basis

Rotation of angle radians around a normalized axis.

Rotation of angle radians around a normalized axis.

Attributes

The rotation q (need not be normalized).

The rotation q (need not be normalized).

Attributes

def fromEuler(euler: Vector3, order: Long = ...): Basis
def fromRows(r0: Vector3, r1: Vector3, r2: Vector3): Basis

The basis with rows r0, r1, r2 (the engine's storage order).

The basis with rows r0, r1, r2 (the engine's storage order).

Attributes

def fromScale(scale: Vector3): Basis
def lookingAt(target: Vector3, up: Vector3 = ..., useModelFront: Boolean = ...): Basis

A basis whose -Z (or +Z with useModelFront) points at target, with +Y as close to up as possible.

A basis whose -Z (or +Z with useModelFront) points at target, with +Y as close to up as possible.

Attributes

def rows(a00: Float, a01: Float, a02: Float, a10: Float, a11: Float, a12: Float, a20: Float, a21: Float, a22: Float): Basis

Row-major element constructor, as Godot's Basis(9 floats).

Row-major element constructor, as Godot's Basis(9 floats).

Attributes

Deprecated methods

Attributes

Deprecated
[Since version 0.1.9] use Basis.IDENTITY

Concrete fields

val FLIP_X: Basis
val FLIP_Y: Basis
val FLIP_Z: Basis