瀏覽代碼

Update raycast.md

Björn Ritzl 6 年之前
父節點
當前提交
45ef402ea8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/physics/raycast/raycast.md

+ 2 - 1
examples/physics/raycast/raycast.md

@@ -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
 ---
 
 ![raycast](raycast.png)
@@ -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`.