Extensions.BoxCast
Extension Method in Extensions
Declaration
public static bool BoxCast(this UnityEngine.CharacterController character, Vector3 direction, out RaycastHit hit, float maxDistance, LayerMask layerMask)
Description
Performs a box cast from the character's position.
Parameters
character | The character to perform the cast from. |
direction | The direction to perform the cast. |
hit | The resulting hit information. |
maxDistance | The max length of the cast. |
layerMask | The layer mask to use. |
Returns
bool | True if any intersections were found. |