Raycast
Layer Mask nodes
See Layer Mask.
Raycast
Casts a ray and outputs information about the first thing that they ray hits.
Inputs:
Enter
Flow
Flow to activate the node.
Origin
Vector3 [editable]
Starting point for the ray.
Direction
Vector3 [editable]
The direction in which to fire the ray.
Max Distance
Float [editable]
The maximum distance from Origin
for the ray to travel.
Layer Mask
Integer [editable]
A Layer mask that's used to selectively ignore Colliders.
Query Trigger
Boolean [editable]
If true, the ray can hit a trigger. If false, the ray will ignore triggers.
Outputs:
Raycast Hit
Flow
Continue the initiating flow if the ray hit.
Raycast Miss
Flow
Continue the initiating flow if the ray missed.
Hit
Boolean
True if the ray hit something.
Collider Hit
Collider
Reference to the collider that the ray hit.
Distance
Float
Distance to the point of collision.
Point
Vector3
The point where the ray hit something.
Normal
Vector3
The normal of the surface the ray hit.
Last updated