Execute Raycast to check if there is an Object in a line towards Raycast's direction.
The line is visualized when the Raycast node is selected.
Attach To | Optional. Selects an Object to be the source of the Raycast |
Execute | Executes the Node |
↳ On Start | Executes the Node at the start of the game |
↳ Always | Executes the Node on each frame |
Enabled | Enable or disable the node. Disabled Nodes cannot be executed |
Local Direction | Makes Raycast's direction be based in the attached Object's direction |
Local Offset | Makes Raycast's Offset be calculated based in Raycast's direction instead of global coordinates. |
Scale with Object | Increase or decrease range of the Raycast based on the scale of the Attach To object |
Group Filter | Determines the Color Groups that this Raycast can hit |
Ignore Filter | Determines the Color Groups that Raycast will ignore |
Min / Max Range | Determines the range in which Raycast can hit Objects specified by the Group Filter |
Offset | Set or input a vector to determine the offset of Raycast's source |
↳ X, Y & Z | Manual set the X, Y & Z offset of the Raycast's source |
On Hit Object | When Raycast hits an Object, outputs both the distance from said Object and the Object reference |
Did Hit | The values and/or actions this component sends forward when it is executed and hits an Object |
Didn't Hit | The values and/or actions this component sends forward when it is executed and doesn't hit an Object |
On Hit Normal Vector | Outputs the normal vector of the face of the Object the Raycast hits on. Mainly used for reflections |
Here's some links to the hypes that shows how to implement and use the Raycast node: