C# Class CustomController, SuperCharacterController

Inheritance: MonoBehaviour
Show file Open project: IronWarrior/SuperCharacterController Class Usage Examples

Public Properties

Property Type Description
debugSpheres bool
myCollider UnityEngine.CapsuleCollider
recursivePushBack int
slopeLimit float

Public Methods

Method Description
Awake ( ) : void
ClampToGround ( ) : void
CollideWithWorld ( ) : void
DisableClamping ( ) : void
DisableSlopeLimit ( ) : void
EnableClamping ( ) : void
EnableSlopeLimit ( ) : void
IsGrounded ( float distance ) : bool
OnDrawGizmos ( ) : void
ProbeGround ( ) : void

Private Methods

Method Description
OnSteadyGround ( Vector3 normal, Vector3 point ) : bool
PushBack ( ) : bool
ResetGround ( ) : void
SetCollisionParameters ( ) : void
SimulateSphereCast ( RaycastHit hit, float smallerRadius, Vector3 origin, float radius ) : RaycastHit
SlopeLimit ( ) : bool
SpherePosition ( CollisionSphere, sphere ) : Vector3

Method Details

Awake() public method

public Awake ( ) : void
return void

ClampToGround() public method

public ClampToGround ( ) : void
return void

CollideWithWorld() public method

public CollideWithWorld ( ) : void
return void

DisableClamping() public method

public DisableClamping ( ) : void
return void

DisableSlopeLimit() public method

public DisableSlopeLimit ( ) : void
return void

EnableClamping() public method

public EnableClamping ( ) : void
return void

EnableSlopeLimit() public method

public EnableSlopeLimit ( ) : void
return void

IsGrounded() public method

public IsGrounded ( float distance ) : bool
distance float
return bool

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

ProbeGround() public method

public ProbeGround ( ) : void
return void

Property Details

debugSpheres public property

public bool debugSpheres
return bool

myCollider public property

public CapsuleCollider,UnityEngine myCollider
return UnityEngine.CapsuleCollider

recursivePushBack public property

public int recursivePushBack
return int

slopeLimit public property

public float slopeLimit
return float