ExplodeManager
Methods
getActive
- ExplodeManager.getActive()
Indicates whether there is a currently active explode operation.
- Return type
boolean
- Returns
boolean value indicating if there is an active explode operation.
getMagnitude
- ExplodeManager.getMagnitude()
Gets the current explode magnitude. This will always return 0 when there is no active explode operation.
- Return type
number
- Returns
the current explode magnitude.
setMagnitude
- ExplodeManager.setMagnitude(magnitude)
Sets the explosion magnitude if there is an active explosion operation. A value of 1.0 indicates that the distance between a part’s exploded center, and exploded center will be double.
- Arguments
magnitude (
number()
) – the magnitude for the explosion.
- Return type
Promise <void>
- Returns
a promise that resolves when this operation is complete.
start
- ExplodeManager.start([nodeIds[, explosionVector]])
Starts an explode operation. This will cancel any currently active explode operation.
- Arguments
- Return type
Promise <void>
- Returns
a promise that resolves when this operation is complete.
stop
- ExplodeManager.stop()
Terminates any active explode operation.
- Return type
- Returns
a promise that resolves when this operation is complete.