docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Solver.StabilizationHeuristicSettings

    Settings for controlling the solver stabilization heuristic.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public struct Solver.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
    float

    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
    float

    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
    bool

    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
    bool

    True if enable solver stabilization, false if not.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)