Collision results - what if I do not clear them?

Is it true that if I will not clear a particular CollisionResults object, they will stack up there indefinitely, remembering all the collisions that were before?

no, they are cleared immediately after the collision() method is called and then reused. thats why the javadoc says you are not supposed to use them outside that method.

1 Like