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
Assembly: Unity.Physics.Hybrid.dll
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
CollisionTolerance
Sets the collision tolerance.
The collision tolerance specifies the minimum distance required for contacts between rigid bodies to be created.
This value can be increased if undesired collision tunneling is observed in the simulation.
Declaration
public float CollisionTolerance { get; set; }
Property Value
Type | Description |
---|---|
float |
EnableSolverStabilizationHeuristic
Enables the contact solver stabilization heuristic.
Declaration
public bool EnableSolverStabilizationHeuristic { get; set; }
Property Value
Type | Description |
---|---|
bool |
Gravity
Specifies the amount of gravity present in the physics simulation.
Declaration
public float3 Gravity { get; set; }
Property Value
Type | Description |
---|---|
float3 |
IncrementalDynamicBroadphase
Enables the incremental dynamic broadphase.
Enabling this option will update the dynamic broadphase incrementally whenever changes between simulation steps occur, potentially leading to time savings for cases with many dynamic rigid bodies that don't move or otherwise change.
Declaration
public bool IncrementalDynamicBroadphase { get; set; }
Property Value
Type | Description |
---|---|
bool |
IncrementalStaticBroadphase
Enables the incremental static broadphase.
Enabling this option will update the static broadphase incrementally whenever changes between simulation steps occur, potentially leading to time savings for cases with many static rigid bodies that don't move or otherwise change.
Declaration
public bool IncrementalStaticBroadphase { get; set; }
Property Value
Type | Description |
---|---|
bool |
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 |
---|---|
bool |
SimulationType
Specifies the type of physics engine to be used.
Declaration
public SimulationType SimulationType { get; set; }
Property Value
Type | Description |
---|---|
Simulation |
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 |
---|---|
int |
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 |
---|---|
bool |