Struct KinematicCharacterAspect.Constants
Defines various constants used throughout the character update
Inherited Members
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 |