Skip to content

Raycast 3D

Physics ยป Raycast 3D

Description

Returns true if there's a clear line of sight between two positions

Parameters

Name Description
Source The scene position where the raycast originates
Target The targeted position where the raycast ends
Layer Mask A bitmask that skips any objects that don't belong to the list

Example 1

Note that this Instruction uses Unity's 3D physics engine. It won't collide with any 2D objects

Keywords

Check Collide Linecast See 3D