HTML and CSS Reference
In-Depth Information
Handling collision detection
In this task, we detect if the ball passes through the hoop and we reward the player with
scores. We will also create a world boundary and remove balls that are out of bounds.
Prepare for lift off
The detecion is done by placing a sensor between the hoop squares. The following igure
shows how the sensor is placed:
For the boundary, it will be a long body that is placed at the botom of the world, as shown
in the following figure:
Search WWH ::

Custom Search