Class PhysicsStepAuthoring
Parameters describing how to step the physics simulation.
If this component is not present, default values will be used.
Inherited Members
Namespace: Unity.Physics.Authoring
Syntax
[AddComponentMenu("Entities/Physics/Physics Step")]
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.physics@latest/index.html?subfolder=/api/Unity.Physics.Authoring.PhysicsStepAuthoring.html")]
public sealed class PhysicsStepAuthoring : MonoBehaviour
Properties
EnableSolverStabilizationHeuristic
Enables the contact solver stabilization heuristic.
Declaration
public bool EnableSolverStabilizationHeuristic { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Gravity
Specifies the amount of gravity present in the physics simulation.
Declaration
public float3 Gravity { get; set; }
Property Value
Type | Description |
---|---|
float3 |
MultiThreaded
Enables multi-threaded processing.
Enabling this option will maximize the use of parallelization in the entire simulation pipeline while disabling it will result in minimal thread usage.
Declaration
public bool MultiThreaded { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SimulationType
Specifies the type of physics engine to be used.
Declaration
public SimulationType SimulationType { get; set; }
Property Value
Type | Description |
---|---|
SimulationType |
SolverIterationCount
Specifies the number of solver iterations the physics engine will perform.
Higher values mean more stability, but also worse performance.
Declaration
public int SolverIterationCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
SynchronizeCollisionWorld
Specifies whether to update the collision world an additional time after the step for more precise collider queries.
Declaration
public bool SynchronizeCollisionWorld { get; set; }
Property Value
Type | Description |
---|---|
Boolean |