瀏覽代碼

Update docs

Daniele Bartolini 10 年之前
父節點
當前提交
dbfae8dd3f
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      docs/lua_api.txt

+ 10 - 0
docs/lua_api.txt

@@ -335,6 +335,10 @@ Math
 		Returns the distance along ray (from, dir) to intersection point with the oriented
 		bounding box (tm, half_extents) or -1.0 if no intersection.
 
+	**ray_triangle_intersection** (from, dir, v0, v1, v2) : float
+		Returns the distance along ray (from, dir) to intersection point with the triangle
+		(v0, v1, v2) or -1.0 if no intersection.
+
 UnitManager
 ===========
 
@@ -795,6 +799,12 @@ Device
 	**enable_resource_autoload** (enable)
 		Sets whether resources should be automatically loaded when accessed.
 
+	**temp_count** () : int, int, int
+		Returns the number of temporary objects used by Lua.
+
+	**set_temp_count** (nv, nq, nm)
+		Sets the number of temporary objects used by Lua.
+
 DebugLine
 =========