Skip to content

GoDNAHuman

Every imported character's root node runs GoDNAHuman (addons/godna/runtime/godna_human.gd). It's the one place for the character's runtime controls: face, head, eyes and twist. It's plain GDScript, so exported games need no native libraries.

When it enters the tree it finds the Skeleton3D and the face meshes, and adds a TwistModifier, a HeadDriver and an ARKitEyeDriver under the skeleton. These are internal nodes (not in the Scene dock, not saved), placed after any modifier you add to the skeleton, so your IK or look-at modifiers run first. To run one at a different point, add it to the skeleton yourself; GoDNAHuman then configures yours instead of adding its own.

Face

GoDNA Pro

Face shapes are in GoDNA Pro. In GoDNA Lite and GoDNA Standard, the face keeps its neutral expression. See Editions.

Each of the 52 ARKit shapes is a property (jawOpen, eyeBlinkLeft, mouthSmileLeft, ...). Edit them in the Inspector, key them in an AnimationPlayer track (.:jawOpen from an AnimationPlayer that is a child of the character), or set them from code:

@onready var human: GoDNAHuman = $Ada

func _ready() -> void:
    human.set_face_weight(&"jawOpen", 0.6)
    human.set_face_weights({"eyeBlinkLeft": 1.0, "mouthSmileLeft": 0.8, "mouthSmileRight": 0.8})

Weights go to every mesh under the node that has ARKit blend shapes: the face (skin, teeth), the eyelashes and the face-bound hair cards. MetaHumans have no mouthClose shape; setting it is stored but moves nothing.

Property Default
face_intensity 1.0 Multiplies every face weight (0 = neutral face).
tracking_influence {} Per-shape calibration for face tracking, shape → Vector3(in_min, in_max, out_max). Set in Face Studio and stored in the .gdna. Only tracking goes through it.
Method
set_face_weight(shape, weight) Set one shape (clamped to 0..1). An unknown name is an error.
set_face_weights(dict) Set several shapes; the others keep their value.
get_face_weight(shape) -> float One shape's weight (0 if never set).
get_face_weights() -> Dictionary Every weight, in ARKit order.
reset_face() All weights to 0 and head_rotation to zero.
apply_tracking_influence(shape, weight) -> float A tracked weight through the shape's tracking_influence.
get_face_meshes() -> Array[MeshInstance3D] The meshes the weights are applied to.
get_missing_face_shapes() -> PackedStringArray Shapes no mesh has (mouthClose).
get_skeleton() -> Skeleton3D The character's skeleton.

The signal face_weights_changed fires after any face weight changes. GoDNAHuman.ARKIT_SHAPES lists the 52 names in Apple's order.

Property Default
head_rotation Vector3.ZERO Head turn in radians on top of the animation: x = pitch (+ looks up), y = yaw (+ turns to the character's left), z = roll (+ tilts the top of the head to the character's left). Keyable.
head_enabled true Apply head_rotation.
head_neck_share 0.4 Share of the turn the neck takes; the head takes the rest.

Eyes

The eyeLook* shapes only move the eyelids. The eye driver turns the eye bones from the same weights.

Property Default
eyes_enabled true Turn the eye bones from the eyeLook weights.
eye_max_horizontal 30° Eye turn at eyeLookIn / eyeLookOut = 1.
eye_max_up 25° Eye turn at eyeLookUp = 1.
eye_max_down 30° Eye turn at eyeLookDown = 1.

Twist

Property Default
twist_enabled true Spread limb roll over the twist bones. Turn off for clips that animate the twist bones themselves (UE clips do).
twist_strength 1.0 Scales every twist bone's share.

See Drivers for how each one works.