out colliding against something.

<p>Note that this will be called on every frame while the collision
is still happening. So if you are doing an expensive operation on collision
or something that should only happen once, be sure to add some logic
to stop your code from doing it every frame. You could either add a flag
to memory, or use <a href="cooldown.html">cooldown</a> to prevent repeated calls to
<tt>onCollision</tt> for a given time.
</div>









    <h5>Parameters:</h5>
    

<table class="params">