Character Controller Pro  1.3.8
A 2D/3D character controller asset for the Unity Engine.
Lightbug.CharacterControllerPro.Core.CharacterCollisionInfo Struct Reference

This struct contains all the character info related to collision, that is, collision flags and external components. All the internal fields are updated frame by frame, and can can be accessed by using public properties from the CharacterActor component. More...

Public Member Functions

void Reset ()
 Resets all the fields to default. More...
 
void ResetWallInfo ()
 Resets the wall contact related info. More...
 
void SetWallInfo (in Contact contact, CharacterActor characterActor)
 
void ResetHeadInfo ()
 Resets the head contact related info. More...
 
void SetHeadInfo (in Contact contact, CharacterActor characterActor)
 
void SetGroundInfo (in CollisionInfo collisionInfo, CharacterActor characterActor, bool setGroundContact=false)
 
void SetGroundContact (in CollisionInfo collisionInfo, CharacterActor characterActor)
 
void SetGroundInfo (in Contact contact, CharacterActor characterActor)
 
void ResetGroundInfo ()
 Resets the ground contact related info. More...
 

Public Attributes

Vector3 groundContactPoint
 
Vector3 groundContactNormal
 
Vector3 groundStableNormal
 
float groundSlopeAngle
 
bool headCollision
 
Contact headContact
 
float headAngle
 
bool wallCollision
 
Contact wallContact
 
float wallAngle
 
bool isOnEdge
 
float edgeAngle
 
GameObject groundObject
 
int groundLayer
 
Collider groundCollider3D
 
Collider2D groundCollider2D
 
Rigidbody groundRigidbody3D
 
Rigidbody2D groundRigidbody2D
 

Detailed Description

This struct contains all the character info related to collision, that is, collision flags and external components. All the internal fields are updated frame by frame, and can can be accessed by using public properties from the CharacterActor component.

Member Function Documentation

◆ Reset()

void Lightbug.CharacterControllerPro.Core.CharacterCollisionInfo.Reset ( )
inline

Resets all the fields to default.

◆ ResetGroundInfo()

void Lightbug.CharacterControllerPro.Core.CharacterCollisionInfo.ResetGroundInfo ( )
inline

Resets the ground contact related info.

◆ ResetHeadInfo()

void Lightbug.CharacterControllerPro.Core.CharacterCollisionInfo.ResetHeadInfo ( )
inline

Resets the head contact related info.

◆ ResetWallInfo()

void Lightbug.CharacterControllerPro.Core.CharacterCollisionInfo.ResetWallInfo ( )
inline

Resets the wall contact related info.


The documentation for this struct was generated from the following file: