The Ultimate Character Controller is integrated with PuppetMaster allowing your character to become a puppet when colliding with other objects. While both first and third person are support from the character controller side of things, we imagine that this integration will primarily be used for third person characters. When the PuppetMaster integration is used Unity’s ragdoll system should not be added to the character.

Downloads

Ultimate Character Controller
First Person Controller
Third Person Controller
UFPS: Ultimate First Person Shooter
UTPS: Ultimate Third Person Shooter
UFPM: Ultimate First Person Melee
UFPM: Ultimate Third Person Melee

Setup

Before setting up the integration it is recommend that you have first independently setup a Ultimate Character Controller character and PuppetMaster puppet before.

  1. Create a “Collision” and “Ragdoll” layers. In our demo scene the Collision layer is index 24, and Ragdoll layer is index 25.
  2. Disable collisions between Character-Ragdoll and Character-Collision layers.
  3. Add a character model to the scene.
  4. Duplicate the character.
  5. Add Biped Ragdoll Creator.cs to the duplicate, click on “Create Ragdoll” and “Done” or “Start Editing Manually” if you wish to edit.
  6. Ensure the project and scene are setup through the Ultimate Character Controller Setup Manager.
  7. Open Tools/Opsive/Ultimate Character Controller/Character Manager. Assign the original character (not the duplicate) and ensure the “Ragdoll” toggle is disabled. Click on “Build Character”.
  8. Add PuppetMaster to the duplicate, set “Character Controller Layer” to the layer number of “Character” and “Ragdoll Layer” to “Ragdoll”. Assign the original character as “Animated Target”.
  9. Click on “Set Up PuppetMaster”.
  10. Drag the “Puppet Behaviour (UCC)” prefab from the integration folder and drop it under the “Behaviours” GameObject.
  11. Set the Behaviour Puppet’s Ground Layers field to “Default”.
  12. Set the Behaviour Puppet’s Collision Layers field to “Collision”.
  13. Add the “Ragdoll” layer to the Invisible Layers mask in the Character Layer Manager component on the character.
  14. Add “Puppet” ability to the Ultimate Character Locomotion’s Abilities, assign the “Puppet” and “Puppet Master” fields.
  15. Copy the “BehaviourPuppet” and “BehaviourFall” Sub-State Machines over from the “PuppetMasterDemoAnimator” animator controller in the integration folder to the animator controller used by your character.
  16. Go to the Character IK component on the character and remove the “Ragdoll” layer from it’s “Layer Mask”.
  17. Remove the “Ragdoll” layer from the Solid Objects Layer on the Character Layer Manager component.
  18. Set the Smoothed Bones on the Ultimate Character Locomotion component to 0.
  19. Ensure the Update Location on the Ultimate Character Locomotion is set to “Fixed Update”.
  20. Ensure the Animator’s Update Mode is set to “Animate Physics”.