Delegate MockColliderCast.DoRaycastInDirectionReturns
Callback function for DoRaycastInDirection(Vector3, Vector3, Single, out IRaycastHit, Int32, QueryTriggerInteraction)
Namespace: nickmaltbie.OpenKCC.Utils.ColliderCast
Assembly: cs.temp.dll.dll
Syntax
public delegate bool DoRaycastInDirectionReturns(Vector3 source, Vector3 direction, float distance, out IRaycastHit hit, int layerMask, QueryTriggerInteraction queryTriggerInteraction);
Parameters
Type | Name | Description |
---|---|---|
Vector3 | source | Source point to check from. |
Vector3 | direction | Direction to search for step. |
Single | distance | Distance to search for step ahead of player. |
IRaycastHit | hit | Information about hit. |
Int32 | layerMask | Layer mask for checking which objects to collide with. |
QueryTriggerInteraction | queryTriggerInteraction | Configuration for QueryTriggerInteraction when solving for collisions. |
Returns
Type | Description |
---|---|
Boolean | Is something ahead hit. |