Back to Tools and Commands

Node Rotate

The nodeRotate command handles object rotation inside the scene. To activate this command, call:

api.commands.activateCommand('nodeRotate')

options

The default options are:

options: {
  onChange: undefined,
  onEnd: undefined,
},

displayGizmo

Control whether or not to display the widget around the selected node. The widget can be used to Rotate the object along the x, y and z-axis.

onChange

Custom function that will be called every single frame when an object is rotating.

onEnd

Custom function that will be called at the end of the object rotation.