C# Class SuperCharacterController, SuperCharacterController

Custom character controller, to be used by attaching the component to an object and writing scripts attached to the same object that recieve the "SuperUpdate" message
Inheritance: MonoBehaviour
Afficher le fichier Open project: IronWarrior/SuperCharacterController Class Usage Examples

Méthodes publiques

Свойство Type Description
Walkable LayerMask

Méthodes publiques

Méthode Description
Awake ( ) : void
ClampToGround ( ) : void
ClearIgnoredColliders ( ) : void
DisableClamping ( ) : void
DisableSlopeLimit ( ) : void
EnableClamping ( ) : void
EnableSlopeLimit ( ) : void
IgnoreCollider ( Collider col ) : void
IsClamping ( ) : bool
ManualUpdate ( float deltaTime ) : void
OnDrawGizmos ( ) : void
PointAboveFeet ( Vector3 point ) : bool
PointBelowHead ( Vector3 point ) : bool
ProbeGround ( int iter ) : void
RecursivePushback ( int depth, int maxDepth ) : void

Check if any of the CollisionSpheres are colliding with any walkable objects in the world. If they are, apply a proper pushback and retrieve the collision data

RemoveIgnoredCollider ( Collider col ) : void
SingleUpdate ( ) : void
SpherePosition ( CollisionSphere, sphere ) : Vector3
Update ( ) : void

Private Methods

Méthode Description
PopIgnoredColliders ( ) : void
PushIgnoredColliders ( ) : void
SlopeLimit ( ) : bool

Prevents the player from walking up slopes of a larger angle than the object's SlopeLimit.

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

ClampToGround() public méthode

public ClampToGround ( ) : void
Résultat void

ClearIgnoredColliders() public méthode

public ClearIgnoredColliders ( ) : void
Résultat void

DisableClamping() public méthode

public DisableClamping ( ) : void
Résultat void

DisableSlopeLimit() public méthode

public DisableSlopeLimit ( ) : void
Résultat void

EnableClamping() public méthode

public EnableClamping ( ) : void
Résultat void

EnableSlopeLimit() public méthode

public EnableSlopeLimit ( ) : void
Résultat void

IgnoreCollider() public méthode

public IgnoreCollider ( Collider col ) : void
col Collider
Résultat void

IsClamping() public méthode

public IsClamping ( ) : bool
Résultat bool

ManualUpdate() public méthode

public ManualUpdate ( float deltaTime ) : void
deltaTime float
Résultat void

OnDrawGizmos() public méthode

public OnDrawGizmos ( ) : void
Résultat void

PointAboveFeet() public méthode

public PointAboveFeet ( Vector3 point ) : bool
point Vector3
Résultat bool

PointBelowHead() public méthode

public PointBelowHead ( Vector3 point ) : bool
point Vector3
Résultat bool

ProbeGround() public méthode

public ProbeGround ( int iter ) : void
iter int
Résultat void

RecursivePushback() public méthode

Check if any of the CollisionSpheres are colliding with any walkable objects in the world. If they are, apply a proper pushback and retrieve the collision data
public RecursivePushback ( int depth, int maxDepth ) : void
depth int
maxDepth int
Résultat void

RemoveIgnoredCollider() public méthode

public RemoveIgnoredCollider ( Collider col ) : void
col Collider
Résultat void

SingleUpdate() public méthode

public SingleUpdate ( ) : void
Résultat void

SpherePosition() public méthode

public SpherePosition ( CollisionSphere, sphere ) : Vector3
sphere CollisionSphere,
Résultat Vector3

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

Walkable public_oe property

public LayerMask Walkable
Résultat LayerMask