BallState
Overview
BallState is an Enum that represents the current state of a SimulationBall.
It is used in the BallState property of SimulationBall to control and check the playback state of the ball simulation. It manages states such as playing, paused, and stopped after the simulation is complete.
Options
Simulated
0
The simulation is complete and ready for playback. This state is reached after calling the Simulate() method.
Playing
1
The simulation is currently playing. Calling the Play() method transitions to this state, and the ball starts moving.
Stopped
2
The simulation is stopped. Calling the Stop() method transitions to this state, and the playback time is reset to 0.
Paused
3
The simulation is paused. Calling the Pause() method transitions to this state, pausing playback while maintaining the playback time.
Last updated