Game Development Reference
In-Depth Information
Objective complete - mini debriefing
In this step, we created the
ragdoll
object by assigning bones to it. Then, Unity automat-
ically attaches all colliders, rigidbody, and character joints to match our character to use for
the
ragdoll
object. This ragdoll will be added to the game scene when the
robotAI
ob-
ject is dead using the
Instantiate()
function. We also added the force to
Rigidbody
to make the ragdoll follow the direction of the rocket, which will make it more realistic us-
ing the
rigidbody.AddForce()
function.