Raycast: Difference between revisions
→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 | 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]] |