Daniele Bartolini 8 лет назад
Родитель
Сommit
c176fdd030
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      docs/lua_api.rst

+ 4 - 0
docs/lua_api.rst

@@ -634,6 +634,10 @@ Sprite
 **sprite_flip_y** (rw, unit, flip)
 	Sets whether to flip the sprite on the y-axis.
 
+**sprite_raycast** (rw, unit, from, dir) : float
+	Returns the distance along ray (from, dir) to intersection point with the sprite or -1.0 if no
+	intersection.
+
 Light
 -----