Version: 2023.2

PhysicsScene.RunSimulationStages

切换到手册
public void RunSimulationStages (float step, SimulationStage stages, SimulationOption options= SimulationOption.All);

参数

step 推进物理模拟的时间。
stages An enum to specify which stages to run.
options A flag enum to specify any additional simulation options.

描述

Runs specified physics simulation stages on this physics scene.

Stages are processed in this order: PrepareSimulation RunSimulation PublishSimulationResults step argument can be any number if RunSimulation stage is not specified.

Additional resources: PhysicsScene.Simulate, Physics.Simulate.