CameraTurntableOperator
-
class
Operators.Camera.
CameraTurntableOperator
()
Methods
Methods
addMapping
-
CameraTurntableOperator.
addMapping
(button, modifier) Arguments: - button (
Button()
) – None - modifier (
KeyModifiers()
) – None
Adds a button and key modifier mapping for the operator. If no mapping is provided, all combinations are considered valid. All mappings require a mouse button, but a key modifier is optional.
Return type: void - button (
clearMapping
-
CameraTurntableOperator.
clearMapping
() Clears any button and key modifier mappings for the operator.
Return type: void
getCameraRotationMomentumEnabled
-
CameraTurntableOperator.
getCameraRotationMomentumEnabled
() Return type: boolean
setCameraRotationMomentumEnabled
-
CameraTurntableOperator.
setCameraRotationMomentumEnabled
(val) Arguments: - val (
boolean()
) – None
Return type: void
- val (
setMapping
-
CameraTurntableOperator.
setMapping
(button, modifier) Arguments: - button (
Button()
) – None - modifier (
KeyModifiers()
) – None
Sets the button and key modifier mapping for the operator.
Return type: void - button (
setMomentumLossPerSecond
-
CameraTurntableOperator.
setMomentumLossPerSecond
(amountLost) Arguments: - amountLost (
number()
) – Proportion of momentum lost per second
Sets proportion of momentum lost per second if camera rotation momentum is enabled. At 0 no momentum is lost and the camera will orbit indefinitely. Above 1 the camera will stop orbiting within a second of release. Only values greater than or equal to 0 are accepted.
Return type: void - amountLost (