Class KCCConfig
fixed configuration for controlling KCC Movement.
Implements
Namespace: nickmaltbie.OpenKCC.Utils
Assembly: cs.temp.dll.dll
Syntax
public class KCCConfig : IKCCConfig
Properties
AnglePower
Angle power for decaying momentum when bouncing off a surface.
Declaration
public float AnglePower { get; set; }
Property Value
Type | Description |
---|---|
Single |
CanSnapUp
Can the player snap up steps during this movement.
Declaration
public bool CanSnapUp { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ColliderCast
Collider cast for checking what the player is colliding with.
Declaration
public IColliderCast ColliderCast { get; set; }
Property Value
Type | Description |
---|---|
IColliderCast |
LayerMask
Get the layer mask for computing player collisions.
Declaration
public LayerMask LayerMask { get; set; }
Property Value
Type | Description |
---|---|
LayerMask |
MaxBounces
Maximum bounces when moving the player.
Declaration
public int MaxBounces { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
SkinWidth
The character's collision skin width.
This is dependant on the scale of the world, but should be a small, positive non zero value.
Reference: CharacterController.skinWidth, Unity Documentation - https://docs.unity3d.com/ScriptReference/CharacterController-skinWidth.html
Reference: Character Controllers: Character Volume, Nvidia PhysX SDK - https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/CharacterControllers.html#character-volume
Declaration
public float SkinWidth { get; set; }
Property Value
Type | Description |
---|---|
Single |
StepUpDepth
Minimum depth required for a stair when moving onto a step.
Declaration
public float StepUpDepth { get; set; }
Property Value
Type | Description |
---|---|
Single |
Up
Position to start player movement from.
Declaration
public Vector3 Up { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
VerticalSnapUp
Vertical snap up distance the player can snap up.
Declaration
public float VerticalSnapUp { get; set; }
Property Value
Type | Description |
---|---|
Single |