added getAABB() and getSize() object functions

git-svn-id: svn://anubis/anaglym/trunk@199 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop committed 2009-12-09 00:01:44 +00:00
1 parent 7ab0cadeb2
commit b82458aa98
5 files changed
+91 -9

No files matched your search

+15
View File
@@ -567,6 +567,14 @@ so calling it is only required if the "AutoDrawObjects" mode
is disabled, and <tt>ag.drawObjects()</tt> is not called.
</p>
<a name="object_getAABB" />
<h3>getAABB</h3>
<p><tt>minx, miny, minz, maxx, maxy, maxz = obj:getAABB()</tt></p>
<p>
This function returns the coordinates of the axis-aligned
box bounding <tt>obj</tt>.
</p>
<a name="object_getMass" />
<h3>getMass</h3>
<p><tt>mass = obj:getMass()</tt></p>
@@ -586,6 +594,13 @@ this call, so these coordinates will be the coordinates of the
object's center-of-mass.
</p>
<a name="object_getSize" />
<h3>getSize</h3>
<p><tt>sx, sy, sz = obj:getSize()</tt></p>
<p>
This function returns the axis-aligned size of <tt>obj</tt>.
</p>
<a name="object_setColor" />
<h3>setColor</h3>
<p><tt>obj:setColor(r, g, b)</tt></p>