Class Scene3d

3D scene

Inherits from


Name Description


Name Type Description
_activeCamera Camera
_ambientColor vec3
_children ObjectList!(
_dirtyTransform bool
_hasRotation bool
_hasScale bool
_hasTranslation bool
_id string
_matrix mat4
_parent Node3d
_rotation mat4
_scale vec3
_scene Scene3d
_translation vec3
_worldMatrix mat4


Name Type Description
activeCamera [get] Camera active camera
activeCamera [set] Camera set or clear current active camera
ambientColor [get] vec3 ambient light color
ambientColor [set] const(vec3) set ambient light color
projectionViewMatrix [get] const(mat4) get projection*view matrix
scene [get] Scene3d returns scene for node
scene [set] Scene3d
childCount [get] int returns child node count
id [get] string id of node
id [set] Node3d set id for node
matrix [get] const(mat4) get transform matrix, recalculates if needed
parent [get] Node3d parent node
parent [set] Node3d
scaling [set] float set scale vector x, y, z to the same value
scaling [set] const(vec3) set scale vector
scaling [get] const(vec3) get scale vector
scalingX [get] float get scale X
scalingX [set] float set scale X
scalingY [get] float get scale Y
scalingY [set] float set scale Y
scalingZ [get] float get scale Z
scalingZ [set] float set scale Z
translation [get] const(vec3) get translation vector
translation [set] inout(vec3) set translation vector
translation [set] float set translation vector x, y, z to the same value
translationX [set] float set translation x
translationX [get] float get translation X
translationY [get] float get translation Y
translationY [set] float set translation y
translationZ [set] float set translation z
translationZ [get] float get translation Z


Name Description
addChild add child node
child returns child node by index
removeChild removes and destroys child node by index
rotate rotate around custom axis
rotateX rotate around X axis
rotateY rotate around Y axis
rotateZ rotate around Z axis
scale scale by vector
scale scale all axis by the same values
scaleX scale X
scaleY scale Y
scaleZ scale Z
setIdentity set transform to identity transform
translate translate by vector
translateX translate X
translateY translate Y
translateZ translate Z