Retargeting animations¶
GoDNA characters use Godot's own retargeting: animations are converted when they're imported, through a BoneMap and Godot's Rest Fixer. GoDNA only picks those settings for you.
Importing a clip¶
- Put the clip's FBX (or glTF) in the project, for example in
res://GoDNA/animations/body/so Body Studio (GoDNA Pro) and the Animations tab (GoDNA Standard) list it. - Select it in the FileSystem dock and open the Import dock.
- Set Import As to Animation Library.
-
In the GoDNA section, set Retarget From to the rig the clip was made for:
Retarget From For BoneMap used Off No GoDNA settings (default). none Mixamo Mixamo downloads ( mixamorig:bones).bone_maps/mixamo_humanoid.tresUE5 Mannequin / MetaHuman Clips made for Unreal's UE5 Mannequin or MetaHuman skeleton. built from GoDNA's bone table Custom BoneMap Any other humanoid rig. Pick your BoneMap in Bone Map below. yours, copied onto the MetaHuman profile Detect (Mixamo or UE5) Mixed packs: Mixamo when the skeleton has mixamorigbones, UE5 Mannequin / MetaHuman when it haspelvis. Anything else is an import error.as for the one detected -
Click Reimport.
The GoDNA tab can skip the Import dock:
- GoDNA Standard: Pack in the Animations tab sets up the FBX, glTF and DAE files it packs this way, also ones picked from outside the project (they are copied in first).
- GoDNA Pro: right-click files or a folder in the FileSystem dock and choose GoDNA: Set Up as Animations. Every FBX, glTF and DAE file selected (folders with their subfolders) is imported as an Animation Library with Retarget From set to Detect; other import settings are kept. It works without opening the GoDNA tab.
- GoDNA Pro: Add Folder... in Character Animations copies the clips you check from an animation pack anywhere on disk into a project folder you pick, already set up this way.
Play the library on an AnimationPlayer that is a child of the character (its root node is then the character),
or open it in Body Studio.
What the settings do¶
- Every map targets
bone_maps/human_profile.tres: Godot's humanoid profile with a MetaHuman A-pose as its reference, so characters keep their Unreal rest pose instead of being turned into a T-pose. - Characters other than MetaHumans also use Fix Silhouette with threshold 0, so they move like the clip instead of keeping small differences from their own rest pose (for example feet that turn inward). MetaHumans keep Godot's default of 15° and their own rest pose.
- Clips use Fix Silhouette with threshold 0 and Overwrite Axis, so each mapped bone points where the clip's bone points whatever the clip's rest pose (T-pose, A-pose or other). On the test character, limb directions match the raw Mixamo clip to within about 2°.
- UE5 / MetaHuman clips play their raw local rotations, as they would in Unreal. Bones the profile doesn't have
(
spine_02,spine_04,neck_02, twists, metacarpals, toes) are renamed to GoDNA's names, so they animate too. These clips animate the twist bones themselves: turn offtwist_enabledon the GoDNAHuman while one plays. - Mixamo has no root, eye or jaw bones; those stay at rest.
GoDNA's settings are stored in the clip's .import file and marked as GoDNA's. A BoneMap you set yourself in
Advanced Import Settings is kept, and setting Retarget From to Off removes only GoDNA's settings.
Other body types
UE5 / MetaHuman clips are mapped through the rest pose of the character the profile was made from. On a very different body type, keys can land slightly offset.