From 7ea2aa3644de40e68d00b1df25318e2424d1b13f Mon Sep 17 00:00:00 2001
From: Josh Holtrop
Date: Fri, 17 Sep 2010 14:57:39 +0000
Subject: [PATCH] updated documentation for ag.pickObjects() and ag.pickOne()
git-svn-id: svn://anubis/anaglym/trunk@312 99a6e188-d820-4881-8870-2d33a10e2619
---
doc/index.html | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/doc/index.html b/doc/index.html
index a3feb52..022c1d3 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -513,6 +513,34 @@ This function allows for 3D object "picking."
"pick line" (the line from the camera through the "pick point" on the
screen.
Upon error, pickObjects returns nil.
+For each object in the "pick line", the following properties are set:
+
+ - pick_dist - the distance to the object along the pick line
+ - pick_pos - the 3D coordinates of the pick point
+ - pick_normal - the normal of the object at the pick point
+
+
+
+
+pickOne
+objects = ag.pickOne(x, y, obj)
+
+This function allows for 3D object "picking," but only tests the given
+object for intersection with the pick line and is thus much more efficient
+than pickObjects() if you only care about
+selecting on a given object.
+x and y should be the 2D screen coordinates of the
+"pick point."
+obj indicates which object to be tested.
+pickOne returns a boolean for whether or not the given object
+was hit by the "pick line."
+If the return value is true, then the following properties are
+set on obj:
+
+ - pick_dist - the distance to the object along the pick line
+ - pick_pos - the 3D coordinates of the pick point
+ - pick_normal - the normal of the object at the pick point
+