Extensions.GroundCheck

Extension Method in Extensions

Declaration

public static bool GroundCheck(this UnityEngine.CharacterController character, out RaycastHit hit, LayerMask layerMask)

Description

Performs a raycast to see if the character is grounded.

Parameters

characterThe character to check.
hitThe hit information.
layerMaskThe layer mask to use.

Returns

boolTrue if the character is grounded, false otherwise.