|
@@ -1,6 +1,7 @@
|
|
|
---
|
|
|
title: Raycast
|
|
|
brief: This example shows how to use physics raycasts to detect collisions along a straight line from a start point to an end point.
|
|
|
+scripts: raycast.script
|
|
|
---
|
|
|
|
|
|

|
|
@@ -12,7 +13,7 @@ bee
|
|
|
- A *Sprite* component with the bee image.
|
|
|
- A script that performs raycasts from the game object position to the position of mouse/touch input.
|
|
|
|
|
|
-block
|
|
|
+stone
|
|
|
: The square stone block. Contains:
|
|
|
- A *Sprite* component with the stone block image.
|
|
|
- A *Collision object* component with a group set to `stone`.
|