Browse Source

Update docs

Daniele Bartolini 10 years ago
parent
commit
04c1cd9ea0
1 changed files with 12 additions and 0 deletions
  1. 12 0
      docs/lua_api.txt

+ 12 - 0
docs/lua_api.txt

@@ -273,6 +273,18 @@ Matrix4x4Box
 Math
 ----
 
+	**ray_plane_intersection** (from, dir, point, normal) : float
+		Returns the distance along ray (from, dir) to intersection point with plane defined by
+		*point* and *normal* or -1.0 if no intersection.
+
+	**ray_disc_intersection** (from, dir, center, radius, normal) : float
+		Returns the distance along ray (from, dir) to intersection point with disc defined by
+		*center*, *radius* and *normal* or -1.0 if no intersection.
+
+	**ray_sphere_intersection** (from, dir, center, radius) : float
+		Returns the distance along ray (from, dir) to intersection point with sphere defined by
+		*center* and *radius* or -1.0 if no intersection.
+
 	**ray_obb_intersection** (from, dir, tm, extents) : float
 		Returns the distance along ray (from, dir) to intersection point with the oriented
 		bounding box (tm, extents) or -1.0 if no intersection.