Transform3D

gdext.builtin.Transform3D
See theTransform3D companion object
final case class Transform3D(xx: Float, xy: Float, xz: Float, yx: Float, yy: Float, yz: Float, zx: Float, zy: Float, zz: Float, ox: Float, oy: Float, oz: Float)

Godot's Transform3D: a Basis plus an origin, stored flat (12 floats) so one value is one object. Basis fields are named by column as in Basis; ox, oy, oz is the origin. basis and origin build views on demand.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def *(v: Vector3): Vector3

Composition: t first, then this. Written on the flat fields so no intermediate Basis/Vector3 is built.

Composition: t first, then this. Written on the flat fields so no intermediate Basis/Vector3 is built.

Attributes

def *(s: Float): Transform3D
def *(plane: Plane): Plane
def *(aabb: AABB): AABB
def /(s: Float): Transform3D
def basis: Basis
def interpolateWith(xform: Transform3D, weight: Float): Transform3D
def isEqualApprox(xform: Transform3D): Boolean
def isFinite: Boolean
def lookingAt(target: Vector3, up: Vector3 = ..., useModelFront: Boolean = ...): Transform3D
def rotated(axis: Vector3, angle: Float): Transform3D

Rotate around a normalized axis in parent space (left-multiplies).

Rotate around a normalized axis in parent space (left-multiplies).

Attributes

def rotatedLocal(axis: Vector3, angle: Float): Transform3D

Rotate around a normalized axis in local space (right-multiplies).

Rotate around a normalized axis in local space (right-multiplies).

Attributes

def scaled(scale: Vector3): Transform3D
def xform(v: Vector3): Vector3
def xformInv(plane: Plane): Plane
def xformInv(aabb: AABB): AABB

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product