position

fun position(value: Vec3f): Node3D

Sets the position of the Node3D relative to the parent Node. If the Node3D has no parent or if the parent node is NOT a Node3D, then it is the same a globalPosition

Return

the current Node3D

Parameters

value

the new position


fun position(x: Float, y: Float, z: Float): Node3D

Sets the position of the Node3D relative to the parent Node. If the Node3D has no parent or if the parent node is NOT a Node3D, then it is the same a globalPosition

Return

the current Node3D

Parameters

x

the new x position

y

the new y position

z

the new z position


The position of the Node3D relative to the parent transform. If the Node3D has no parent or if the parent node is NOT a Node3D, then it is the same a globalPosition. If you want to set the x,y properties of this Vec3f then use the x, y, and z properties of this Node3D