Contents

simulationClock

The clock that tracks the pace of this simulation.

Declaration

var simulationClock: CMClockOrTimebase { get }

Discussion

Syncing with this clock ensures synchronization with the simulation. For instance, an animation can be played using this clock to ensure that the motion of said animation is synchronized with the simulation.

This clock generally tries to match targetClock, but the two can deviate at times. This is because the simulation may not be able to perfectly follow the target clock due to maximumStepsPerUpdate.

See Also

Synchronizing the clock