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...
|
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 |
|
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.
◆ 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:
- C:/Unity/Projects/character-controller-pro/Assets/Character Controller Pro/Core/Scripts/Character/CharacterCollisionInfo.cs