added documentation for ag.pickObjects()
git-svn-id: svn://anubis/anaglym/trunk@256 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
83d6c60fea
commit
d27f18b701
@ -406,6 +406,19 @@ Textures are searched for relative to the folder containing the
|
||||
hosted script first, then relative to the engine library folder.
|
||||
</p>
|
||||
|
||||
<a name="ag_pickObjects" />
|
||||
<h3>pickObjects</h3>
|
||||
<p><tt>objects = ag.pickObjects(x, y)</tt></p>
|
||||
<p>
|
||||
This function allows for 3D object "picking."
|
||||
<tt>x</tt> and <tt>y</tt> should be the 2D screen coordinates of the
|
||||
"pick point."
|
||||
<tt>pickObjects</tt> 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, <tt>pickObjects</tt> returns <tt>nil</tt>.
|
||||
</p>
|
||||
|
||||
<a name="ag_print" />
|
||||
<h3>print</h3>
|
||||
<p><tt>ag.print(args...)</tt></p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user