diff --git a/.todo b/.todo index e53b7f5..27e10dd 100644 --- a/.todo +++ b/.todo @@ -1,2 +1 @@ -add API documentation for ag.pickObjects() add audio capabilities diff --git a/doc/index.html b/doc/index.html index b551ef6..cc5d43b 100644 --- a/doc/index.html +++ b/doc/index.html @@ -406,6 +406,19 @@ Textures are searched for relative to the folder containing the hosted script first, then relative to the engine library folder.

+ +

pickObjects

+

objects = ag.pickObjects(x, y)

+

+This function allows for 3D object "picking." +x and y should be the 2D screen coordinates of the +"pick point." +pickObjects returns a Lua array of the objects in the +"pick line" (the line from the camera through the "pick point" on the +screen. +Upon error, pickObjects returns nil. +

+

print

ag.print(args...)