Animation in a Third Person Template

The standard BP_ThirdPersonCharacter is not ready to play user-generated emotes yet. To do so, we will need to modify its Blueprint and its AnimBlueprint.

The Skeletal Meshes

  1. Open the BP_ThirdPersonCharacter

  1. Inside the new opened window, add a SkeletalMesh and call it "SkeletalMeshTarget".

  1. Attach it to the inherited "Mesh (CharacterMesh0)"

  2. Due to the fact that "Mesh (CharacterMesh0)" is inherited from Character class, we need to copy its values (except the transform ones) into the newly added "SkeletalMeshTarget"

  1. Replace the values of "Mesh (CharacterMesh0)" with

  1. Add a "KinetixCharacterComponent" and a "AnimSequenceSamplerComponent" to the ThirdPersonTemplate in Components > Add.

  2. Open the Animation Blueprint "ABP_Manny" in Content Drawer > Animations.

  1. Click on "Class Settings"

  1. Inside the "Interfaces" section. Add the "KinetixAnimationInterface" to it.

  1. With this interface comes 1 function and 1 event, implement them by double clicking on each one.

  1. Keep the result of the event "SetKinetixAnimationPlaying" in a variable:

  1. In "IsKinetixAnimationPlaying", return the "PlayingEmote" variable:

  1. In the "AnimGraph", add a CachePose (we called it here "GameplayPose") after the ControlRig Anim Node:

  1. Add a "Blend Poses By bool" node, connect the "PlayingEmote" boolean value to its "Active Value". Add a "Retarget Pose From Mesh" node, connect it to its "True Pose". Add a "Use cached pose "GameplayPose" node and connect it to its "False Pose". Finally, connect the output of the "Blend Poses by bool" to the global "Output Pose" node:

  1. Click on the "Retarget Pose From Mesh" node and set the "IK_Retargeter Asset" value to "RTG_SamRokoko_To_Manny":

  1. Finally, you can now use this circuit to register your local pawn as the local player avatar:

The BP_ThirdPersonCharacter is ready to play Kinetix Emotes!

Last updated