Game Development Reference
In-Depth Information
}
}
8. Finally, in the
onTrigger
method, we should set
pickedUp
to
true
, detach
model
from scene graph and call
pickupOb-
ject.apply(triggeringActor)
to have it apply whatever the
Pickup-
able
object is supposed to do.