Game Development Reference
In-Depth Information
Hotshot challenges
Now, we have understood the concept of creating destructible objects, but the objects that
we created are on the cube from the Unity engine. We can make it more interesting with
something like the following:
• Create your own object in any 3D software instead of the cube to make it much
more realistic and attach the Rocks script to it and see how it works
• Add some script that will make the rock damage the player and AIs when they get
hit while the rock is falling down
• Add the smoke particle to the rocks when they are falling down
• Make a ragdoll match the last AI animation post by creating a ragdoll with the AI
game object and using the is Kinematic method to enable or disable ragdoll phys-
ics instead of replacing the new object
• Create a random rock that will fall every time the player walks by the lake
• Create a trigger area such as door or switch that can trigger multiple events at the
same time by using the delegate and event functions
Search WWH ::




Custom Search