Login

Fancade Wiki

Updated Raycast.md (markdown)

... ...
@@ -2,8 +2,10 @@ Traces a line between two points and outputs [[True]] if the line hits anything,
2 2
3 3
Note that Raycast detects when the line hits the outside surface of a block. If the line starts *inside* the block then it will not hit that block when going out. Also, it won't detect an object that has been created in the same frame, you have to wait 1 frame after creating the object for Raycast to detect it.
4 4
5
It cannot detect [[Pass Through]]s and [[Script Block]]s. However, [[Script Block]]s are invisible in game.
5
It cannot detect [[Pass Through]]s and [[Script Block]]s.
6 6
7
This is useful for Raycast drawing using a [[Marker]].
7
[[/uploads/Raycast.png]]
8 8
9
[[/uploads/Raycast.png]]
... ...
\ No newline at end of file
0
## Raycast drawing
1
2
In edit mode, a visible line will be drawn between the start and points: green if there is not a hit, red otherwise. This effect can be used to make green and red line drawings, but it won't be visible in play mode unless the level contains only scripting blocks and no normal blocks.
... ...
\ No newline at end of file
Fancade Wiki