Raycast: Difference between revisions

223 bytes added ,  6 August 2024
→‎Examples: Fixed spelling mistake
(Small improvements)
(→‎Examples: Fixed spelling mistake)
 
(One intermediate revision by the same user not shown)
Line 33: Line 33:
On the first frame the normal block can then be moved to the floor, and set to visible (being inside a script block makes it start not visible).
On the first frame the normal block can then be moved to the floor, and set to visible (being inside a script block makes it start not visible).
Then set it in the path of a Raycast line to turn it red.
Then set it in the path of a Raycast line to turn it red.
== Examples ==
Cast a ray in the direction an object is facing.
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}}


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