Interface ISimulation
Interface for simulations.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public interface ISimulation : IDisposable
Properties
FinalJobHandle
The final scheduled job, including all simulation and cleanup. The end of each step should depend on this.
Declaration
JobHandle FinalJobHandle { get; }
Property Value
Type | Description |
---|---|
JobHandle | The final job handle. |
FinalSimulationJobHandle
The final scheduled simulation job. Jobs which use the simulation results should depend on this.
Declaration
JobHandle FinalSimulationJobHandle { get; }
Property Value
Type | Description |
---|---|
JobHandle | The final simulation job handle. |
Type
The implementation type.
Declaration
SimulationType Type { get; }
Property Value
Type | Description |
---|---|
SimulationType | The type. |
Methods
ScheduleStepJobs(SimulationStepInput, JobHandle, bool)
Schedule a set of jobs to step the simulation.
Declaration
SimulationJobHandles ScheduleStepJobs(SimulationStepInput input, JobHandle inputDeps, bool multiThreaded = true)
Parameters
Type | Name | Description |
---|---|---|
SimulationStepInput | input | The input. |
JobHandle | inputDeps | The input deps. |
bool | multiThreaded | (Optional) True if multi threaded. |
Returns
Type | Description |
---|---|
SimulationJobHandles | The SimulationJobHandles. |
Step(SimulationStepInput)
Step the simulation.
Declaration
void Step(SimulationStepInput input)
Parameters
Type | Name | Description |
---|---|---|
SimulationStepInput | input | The input. |