Skip to content
KinPilot™Learn & Explore
Menu

Grades 6–8 · Computing

How does a game character bend without being redrawn?

A game character can wave, crouch and turn while keeping the same face and clothes. Many characters are built around a hidden digital skeleton called a rig. Its bones are mathematical controls, not actual bones, and moving them changes the visible character’s shape.

The controls form a hierarchy. A forearm belongs to an upper arm, which belongs to the shoulder and body. Turning the upper arm carries the elbow, forearm and hand with it. Turning the forearm changes the bend at the elbow without needing to move the shoulder. Each control has a position and orientation relative to the control above it.

Compare the same linked arm in two poses. The lower enlargement distinguishes the surface mesh from the controls beneath it.

An arm rig carries connected partsTwo arm poses share a shoulder location. Rotating the upper arm moves both the elbow and forearm. A lower enlarged elbow shows a mesh point influenced by both adjacent bones.A linked arm changes poseControls beneath the pictureShoulder stays hereUpper-arm turn carriesthe attached forearm.At the elbow: surface meshA surface point can followboth neighboring bones.
Rotating the upper arm carries its attached elbow and forearm; a point near the joint can share influence from both bones.

The visible surface is usually a mesh: small connected shapes, often triangles. Its points are linked to nearby bones using weights that specify each bone’s influence. A point near an elbow may follow both the upper arm and forearm. Combining their influences helps the surface bend between them instead of breaking into separate rigid pieces.

An animator can save important poses called keyframes. The game calculates intermediate positions and rotations between those poses, a process called interpolation. A walking cycle can repeat, and a transition can blend walking into running. The program still needs carefully designed timing and joint limits; automatic in-between poses do not guarantee a natural-looking movement.

This gives designers a reusable character rather than a new drawing for every possible action. It also explains some familiar glitches. A badly weighted surface can stretch oddly at a joint, and a walking animation can play at the wrong speed for the character’s travel, making feet slide. Convincing movement comes from coordinating the hidden controls, the visible surface and the character’s motion through the world.

About this explanation

This is a simplified skeletal animation model; sprites, procedural animation and other techniques are also used.

Starting knowledge: Understand connected joints and that a computer stores positions as numbers.

Sources

  • Godot Engine — 2D skeletons
  • Godot Engine — Introduction to the animation features
← Grades 6–8 topics