Game Development Reference
In-Depth Information
}
}
}
KillObject();
}
10. Save and click on the Play buton; if we go to the right path in the scene, we will see
the Wall object that we have just created. We can shoot at it and it will break, as
shown in the following screenshot:
Objective Complete - Mini Debriefing
In this step, we basically just created the four cube objects, and each one will have its own
collider and rigidbody , which will make them have their direcion when we apply the
explosion force from the rocket that was ired at them. This will create a realisic behavior for
the wall when it's breaking apart, as shown in the following diagram:
 
Search WWH ::




Custom Search