Game Development Reference
In-Depth Information
Launch the application, and enable wireframe debugging (the
W
key). We should
see a trigger volume (denoted by a white wireframe) just below the spawn point of
the first box. Moments after, the box should collide with the trigger, causing
Colli-
sionEvent()
to be called. Since the two objects involved are the trigger volume,
and the first box, the
if
statement will become true, and a new game object will
be created. The following screenshot shows a new object (the large box) being
spawned after the first box collides with the trigger volume:
Search WWH ::
Custom Search