CameraTurntableOperator
- class Communicator.Operator.CameraTurntableOperator()
Type aliases
Methods
Methods
addMapping
- Communicator.Operator.CameraTurntableOperator.addMapping(button, modifier)
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.
- Arguments
button (
Communicator.Button()
) –modifier (
Communicator.KeyModifiers()
) –
- Return type
void
clearMapping
- Communicator.Operator.CameraTurntableOperator.clearMapping()
Clears any button and key modifier mappings for the operator.
- Return type
void
getCameraRotationMomentumEnabled
- Communicator.Operator.CameraTurntableOperator.getCameraRotationMomentumEnabled()
- Return type
boolean
getMomentumLossPerSecond
- Communicator.Operator.CameraTurntableOperator.getMomentumLossPerSecond()
- Return type
number
isCurrentlyAnimating
- Communicator.Operator.CameraTurntableOperator.isCurrentlyAnimating()
- Return type
boolean
setCameraRotationMomentumEnabled
- Communicator.Operator.CameraTurntableOperator.setCameraRotationMomentumEnabled(val)
- Arguments
val (
boolean()
) –
- Return type
void
setMapping
- Communicator.Operator.CameraTurntableOperator.setMapping(button, modifier)
Sets the button and key modifier mapping for the operator.
- Arguments
button (
Communicator.Button()
) –modifier (
Communicator.KeyModifiers()
) –
- Return type
void
setMomentumLossPerSecond
- Communicator.Operator.CameraTurntableOperator.setMomentumLossPerSecond(amountLost)
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.
- Arguments
amountLost (
number()
) – Proportion of momentum lost per second
- Return type
void