POOL can detect turtle collisions, which are programatically handled with use of the
turtleinteraction events (see also description in the
reference manual). This functionality is used by the
classes, from which we start to build the standard POOL models library. This project illustrates how to use
You can set the direction and the initial energy of the active turtle by moving the mouse. Then click to start
Each object of the
elastic class can have its own value of mass. You can check it by uncommenting
(setmass 20) @ :u line in the code.
If all objects in a simulation have equal masses, then the
elastic_m1 class can be used. It
performs simplified and faster calculations.