Struct Solver.StabilizationHeuristicSettings
Settings for controlling the solver stabilization heuristic.
Inherited Members
Namespace: Unity.Physics
Syntax
public struct StabilizationHeuristicSettings
Fields
Default
The defualt stabilization options.
Declaration
public static readonly Solver.StabilizationHeuristicSettings Default
Field Value
Type | Description |
---|---|
Solver.StabilizationHeuristicSettings |
InertiaScalingFactor
Controls the intensity of inertia scaling. Defaults to 1.0f, while other values will scale the intensity up/down. Shouldn't go higher than 5.0f, as it will result in bad behavior (too high inertia of bodies). Set it to 0.0f to disable the feature.
Declaration
public float InertiaScalingFactor
Field Value
Type | Description |
---|---|
Single |
VelocityClippingFactor
Controls the intensity of the velocity clipping. Defaults to 1.0f, while other values will scale the intensity up/down. Shouldn't go higher than 5.0f, as it will result in bad behavior (too aggressive velocity clipping). Set it to 0.0f to disable the feature.
Declaration
public float VelocityClippingFactor
Field Value
Type | Description |
---|---|
Single |
Properties
EnableFrictionVelocities
Switch to enable/disable heuristic when calculating friction velocities. Should be disabled only if it is causing behavior issues.
Declaration
public bool EnableFrictionVelocities { get; set; }
Property Value
Type | Description |
---|---|
Boolean | True if enable friction velocities, false if not. |
EnableSolverStabilization
Global switch to enable/disable the whole heuristic (false by default)
Declaration
public bool EnableSolverStabilization { get; set; }
Property Value
Type | Description |
---|---|
Boolean | True if enable solver stabilization, false if not. |