Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
Simulation

Introduction

A physics Simulator is the main component of a physics simulation. It manages the setup and the shutdown of the physical simulator (in our case for now: NVIDIA's PhysX). A Scene creates all the physical objects in one simulation. Several Scenes can be simulated by one Simulator, independent of each other.

The Simulation Loop

The simulation loop is the main loop of a physics simulation. It updates the physics world by advancing the simulation time, handling collisions, and applying forces. The loop typically runs at a fixed time step to ensure consistent simulation results. The Scene object provides the methods to either step the simulation by a fixed time step or running the simulation on its own.