Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Script

Use this enumeration to instruct Unity to execute the physics simulation manually when you call Physics.Simulate.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
Script = 2

Remarks

Executing the physics simulation in a script provides full control over when the simulation runs and the duration of simulation. Use this mode to emulate both SimulationMode.FixedUpdate and SimulationMode.Update, and any other custom time interval.
The stability and determinism of the simulation depends on when Unity executes the simulation. If the simulation runs each frame, then it is always synchronized, including contacts between Colliders. This means that Rigidbody interpolation is not required.
Additional Resources: Physics.simulationMode.