Daniele Bartolini %!s(int64=8) %!d(string=hai) anos
pai
achega
c176fdd030
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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
 -----