docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ContactJacAngAndVelToReachCp

    A contact jacobian angle and velocity to reach the contact plane.

    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 ContactJacAngAndVelToReachCp

    Fields

    ApplyImpulse

    A flag used to indicate if an impulse should be applied to the contact point. This flag is set to true by default and is only false if: the substepCount > 1, the coefficient of restitution is greater than 0 and CalculateRestitution returns false. Needed for brief contacts when substepping so that impulse isn't always applied during Solve.

    Declaration
    public bool ApplyImpulse
    Field Value
    Type Description
    bool

    ContactDistance

    The distance to the contact point. This point is initially identified by the narrowphase and is initialized during the Jacobian Build stage. During the solve and integrate stage, this value is updated each substep.

    Declaration
    public float ContactDistance
    Field Value
    Type Description
    float

    Jac

    The jacobian.

    Declaration
    public ContactJacobianAngular Jac
    Field Value
    Type Description
    ContactJacobianAngular

    VelToReachCp

    Velocity needed to reach the contact plane in one frame, both if approaching (negative) and depenetrating (positive)

    Declaration
    public float VelToReachCp
    Field Value
    Type Description
    float
    In This Article
    Back to top
    Copyright © 2025 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)