docs.unity3d.com
    Show / Hide Table of Contents

    Struct KinematicCharacterAspect.Constants

    Defines various constants used throughout the character update

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.CharacterController
    Syntax
    public struct Constants

    Fields

    CollisionOffset

    Offset value representing a desired distance to stay away from any collisions for the character

    Declaration
    public const float CollisionOffset = 0.01F
    Field Value
    Type Description
    Single

    DefaultReverseProjectionMaxLengthRatio

    Default max length multiplier of reverse projection

    Declaration
    public const float DefaultReverseProjectionMaxLengthRatio = 10F
    Field Value
    Type Description
    Single

    DotProductSimilarityEpsilon

    Error margin for considering that the dot product of two vectors is 0f (same direction)

    Declaration
    public const float DotProductSimilarityEpsilon = 0.001F
    Field Value
    Type Description
    Single

    GroundedHitDistanceTolerance

    Max distance of valid ground hits compared to the closest detected ground hits

    Declaration
    public const float GroundedHitDistanceTolerance = 0.06F
    Field Value
    Type Description
    Single

    GroundedHitDistanceToleranceSq

    Squared max distance of valid ground hits compared to the closest detected ground hits

    Declaration
    public const float GroundedHitDistanceToleranceSq = 0.0036F
    Field Value
    Type Description
    Single

    MinDotRatioForVerticalDecollision

    Minimum dot product value between grounding up and slope normal for a character to consider vertical decollision

    Declaration
    public const float MinDotRatioForVerticalDecollision = 0.1F
    Field Value
    Type Description
    Single

    MinVelocityDotRatioWithGroundingUpForSteppingUpHits

    Minimum dot product value between velocity and grounding up in order to allow stepping up hits

    Declaration
    public const float MinVelocityDotRatioWithGroundingUpForSteppingUpHits = -0.85F
    Field Value
    Type Description
    Single

    MinVelocityLengthSqForGroundingIgnoreCheck

    Minimum squared velocity length required to make grounding ignore checks

    Declaration
    public const float MinVelocityLengthSqForGroundingIgnoreCheck = 0.0001F
    Field Value
    Type Description
    Single

    StepGroundingDetectionHorizontalOffset

    Horizontal offset of step detection raycasts

    Declaration
    public const float StepGroundingDetectionHorizontalOffset = 0.01F
    Field Value
    Type Description
    Single
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023