mirror of
https://github.com/vrld/HC.git
synced 2024-11-18 12:54:23 +00:00
Update MainModule.rst
This commit is contained in:
parent
eac8874ef9
commit
92fb6a607f
@ -67,11 +67,19 @@ not be able to find any collisions with those shapes anymore.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Bookkeeping
|
Shapes
|
||||||
-----------
|
------
|
||||||
|
|
||||||
See also the :doc:`Shapes` sub-module.
|
See also the :doc:`Shapes` sub-module.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
HC will only keep `weak references
|
||||||
|
<https://www.lua.org/manual/5.1/manual.html#2.10.2>`_ to the shapes you add
|
||||||
|
to the world. This means that if you don't store the shapes elsewhere, the
|
||||||
|
garbage collector will eventually come around and remove these shapes.See
|
||||||
|
also `this issue <https://github.com/vrld/HC/issues/44>`_ on github.
|
||||||
|
|
||||||
|
|
||||||
.. function:: HC.rectangle(x, y, w, h)
|
.. function:: HC.rectangle(x, y, w, h)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user