Class Node3d

3D scene node

Inherits from

Constructors

Name Description
this

Fields

Name Type Description
_children ObjectList!(dlangui.graphics.scene.node.Node3d)
_id string
_parent Node3d
_scene Scene3d
_worldMatrix mat4
_dirtyTransform bool
_hasRotation bool
_hasScale bool
_hasTranslation bool
_matrix mat4
_rotation mat4
_scale vec3
_translation vec3

Properties

Name Type Description
childCount [get] int returns child node count
id [get] string id of node
id [set] Node3d set id for node
parent [get] Node3d parent node
parent [set] Node3d
scene [get] Scene3d returns scene for node
scene [set] Scene3d
matrix [get] const(mat4) get transform matrix, recalculates if needed
scaling [set] float set scale vector x, y, z to the same value
scaling [get] const(vec3) get scale vector
scaling [set] const(vec3) set 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 [get] float get translation X
translationX [set] float set translation x
translationY [set] float set translation y
translationY [get] float get translation Y
translationZ [get] float get translation Z
translationZ [set] float set translation z

Methods

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 all axis by the same values
scale scale by vector
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
invalidateTransform

Authors

Copyright

License