Description
The FeetCollider
property of the PlayerController
class provides access to the BoxCollider
component associated with the player's feet. This collider is typically used to detect ground contact and manage interactions with surfaces the player is walking on.
Usage
Use the FeetCollider
property to access or modify the BoxCollider
component for the player's feet. This can be useful for adjusting collision detection parameters or handling specific interactions with the ground.
Example
// Accessing the FeetCollider property
BoxCollider feetCollider = playerController.FeetCollider;
// Example: Adjusting the size of the FeetCollider
feetCollider.Size = new Vector3(1.0f, 0.5f, 1.0f);