Script
Use this enumeration to instruct Unity to execute the physics simulation manually when you call Physics.Simulate.
阅读时间1 分钟最后更新于 20 天前
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