In the example: the yellow arrow represents the collision
ray used for the text: move the red balls to change the
borders of the arrow. It displays the coordinates of
both the intersection point and the norm vector when there
is a collision, as well as a green arrow in the scene,
starting at the collision point, showing the norm vector.
Using the collision ray, you can for example create your own reactive
behavior for objects.
|