rotation

fun rotation(quaternion: Vec4f): Node3D

Sets the rotation of the Node3D relative to the parent Node3D as a Quaternion. If the Node3D has no parent or if the parent node is NOT Node3D, then it is the same a globalRotation

Return

the current Node3D

Parameters

quaternion

the rotation quaternion


The rotation of the Node3D relative to the parent transform's rotation as a Quaternion. If the Node3D has no parent or if the parent node is NOT a Node3D, then it is the same a globalRotation