Rotate||doc136419

September 20, 2022

Format

MovableNode:Rotate(rotation, worldSpace)

Describe

Control the instance to rotate a certain angle vector. By default, it rotates according to its own coordinate axis. You can choose to rotate according to the world coordinate axis.

parameter

Variable name Type Describe
rotation Vector3 Rotation angle vector
worldSpace bool Whether to rotate with the world coordinate axis. The default is false