Jump to content

Raycast: Difference between revisions

3 bytes removed ,  6 August 2024
→‎Examples: Fixed spelling mistake
(Adapted "Raycast in same direction as object?" article from old wiki)
(→‎Examples: Fixed spelling mistake)
 
Line 36: Line 36:
== Examples ==
== Examples ==
Cast a ray in the direction an object is facing.
Cast a ray in the direction an object is facing.
The <code>{{Port|v|0,0,1}}</code> indicates the object is facing in the positive Z axis by default, and the raycast length is 1.
The <code>{{Port|v|0,0,1}}</code> indicates the object points in the positive Z axis by default, and the raycast length is 1.


{{Image|Raycast example1.png}}
{{Image|Raycast example1.png}}


[[Category:Blocks]]
[[Category:Blocks]]