Struct SimulationStepInput
Parameters for a simulation step.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public struct SimulationStepInput
Fields
Gravity
Gravity in the physics world.
Declaration
public float3 Gravity
Field Value
Type | Description |
---|---|
float3 |
HaveStaticBodiesChanged
Used for optimization of static body synchronization.
Declaration
public NativeReference<int>.ReadOnly HaveStaticBodiesChanged
Field Value
Type | Description |
---|---|
NativeReference<int>.ReadOnly |
NumSolverIterations
Number of iterations to perform while solving constraints.
Declaration
public int NumSolverIterations
Field Value
Type | Description |
---|---|
int |
SolverStabilizationHeuristicSettings
Settings for solver stabilization heuristic in Unity.Physics.
Declaration
public Solver.StabilizationHeuristicSettings SolverStabilizationHeuristicSettings
Field Value
Type | Description |
---|---|
Solver.StabilizationHeuristicSettings |
SynchronizeCollisionWorld
Whether to update the collision world after the step for more precise queries.
Declaration
public bool SynchronizeCollisionWorld
Field Value
Type | Description |
---|---|
bool |
TimeStep
Portion of time to step the physics world for.
Declaration
public float TimeStep
Field Value
Type | Description |
---|---|
float |
World
Physics world to be stepped.
Declaration
public PhysicsWorld World
Field Value
Type | Description |
---|---|
PhysicsWorld |