ExampleTimeSimulation

Purpose

Demonstrates how to control the speed of the simulation.

How to Use

The ITimeSimulationSystem allows you to speed up, slow down, stop, and resume the simulation.  Use the UI checkbox to stop and resume the simulation.  Use the UI input field to set the specific speed of the simulation. The current speed of the simulation will be updated and appear on the UI.

Scene Location & Name

Assets/Ride/Examples/Groups/ExampleTimeSimulation.unity

Setup Requirements 

Utilize the ITimeSimulationSystem API for your scene and its agents by adding the ExampleTimeSimulation script. 

ExampleTimeSimulation Script

Add this script to an object in your scene to enable the use of the ITimeSimulationSystem. In this script, UI widget presses are handled to set the time simulation speed via the service.