Skip to main content

Node3D

Inherits: Node < Object

Description

Base object in 3D space. All other 3D nodes inherit from this class. The Node3D node is the base representation of a node in 3D space.

Properties

Vector3
default:"Vector3(0, 0, 0)"
Position (translation) of this node in parent space.
Vector3
default:"Vector3(0, 0, 0)"
Rotation of this node as Euler angles, in radians.
Vector3
default:"Vector3(1, 1, 1)"
Scale of this node in local space.
Transform3D
The local transformation of this node, in parent space.
Transform3D
The transformation of this node, in global space.
bool
default:"true"
If true, this node can be visible.

Methods

translate

Adds the given translation offset to the node’s position, in local space.

rotate

Rotates this node’s basis around the axis by the given angle, in radians.

look_at

Rotates the node so that the local forward axis (-Z) points toward the target position.

to_global

Returns the local_point converted from this node’s local space to global space.

to_local

Returns the global_point converted from global space to this node’s local space.

Example Usage