ROBOT MOTION GUIDE How to make a code-made robot move like it has weight (a one-wheel robot, but most rules work for any character). Free file from the AI2Play tutorial "Music Video in Code". The numbers below are starting values. Tune them by eye: render a short test, watch it, change one thing. Tip: give this file to Claude Code and say "Use these rules for my character's motion." 1. A BODY ON A SPRING (balance) - The body is not glued to the wheel. It sits on a soft spring and leans when the robot speeds up or slows down. - Physics says: lean angle = atan(acceleration / 9.8). A small push (0.1 g) = about 6 degrees. - For a cute character use about half of that: 3 to 8 degrees for normal moves. - Our robot: the lean follows about 3/4 of the physics, through a spring (about 1.9 times a second, a little bouncy), so it overshoots a bit and settles. 2. LEAN INTO A START - A real balancing robot first drives the wheel a little BACK, so the body tips forward, then rolls forward under the body. - About 3 to 6 cm back, for 0.1 to 0.2 seconds, before every start. 3. BRAKING: OVERSHOOT, THEN SETTLE - When it brakes, the body leans back. - The body settles 0.3 to 0.5 seconds after the wheel stops, with one overshoot of about 20 to 30 %. 4. NEVER FULLY STILL (idle) - A tiny constant rocking: about 0.5 to 1.5 degrees, slow (once every 1 to 3 seconds). - The wheel creeps 1 to 3 mm back and forth, plus a slow "breathing" sway. 5. THE WHEEL ROLLS WITHOUT SLIPPING - Wheel angle = distance / radius (in radians). Our wheel: radius 0.28 m, so 1 m of travel = 3.57 radians. - Never move the body without turning the wheel. - Make the roll visible: tread blocks on the tyre and a texture on the floor. On a plain tyre over a plain floor, nobody can see if the wheel turns. 6. TOUCH THE GROUND - A soft contact shadow under the wheel, about 1.2 times the tyre width, darkest where the tyre touches. - The tyre squashes 2 to 3 % when standing, more on a landing. 7. TURNING - Turn the whole body (a one-wheel robot pivots). - Lean into the turn a little, like a bike: about atan(speed x turn rate / 9.8). 8. EYES LEAD, HEAD FOLLOWS, BODY LAST - In a turn or a look: the eyes move first, the head 80 to 160 ms later, the body a few frames after that. - Each part settles with a small overshoot (5 to 10 %). - Our robot's head looks about 0.2 seconds ahead along the path it will turn to. 9. BLINKS - A blink lasts about 100 to 150 ms. Close fast (about 2 frames), open slower (3 to 4 frames). - Blink every 3 to 6 seconds, not on a regular clock. Also blink on a big head turn and after a move. 10. FACES WITH SIMPLE EYES - Happy: the eyes 60 to 70 % of their height, with a flat bottom. - Surprised: 115 % of their height. - Sad or angry: tilt the outer edges. 11. FOLLOW-THROUGH (antennas, arms) - Antennas sit on springs: damping about 0.5 to 0.8, 2 to 4 wobbles a second for short ones, 1.5 to 2.5 for long ones. - At most 2 or 3 visible wobbles, then still. Give the two antennas a 10 to 15 % different speed, so they do not move like twins. - A rigid antenna swings at its hinge; it does not bend. - The arms trail a little behind when the robot speeds up. 12. HOPS - Crouch first (about 8 to 10 % of the body height), then stretch and jump. - Fly on a real gravity curve, land with a squash, then settle with a small bounce. 13. DANCE ON THE BEAT - Hit the pose ON the beat. The anticipation (a small dip) comes in the 3 to 5 frames before it. - When bouncing, the LOWEST point is on the beat. - The head nods about 80 ms after the body dips. - Moves for a robot with no legs: short rolls back and forth, a spin, head pops on beats 2 and 4, antenna flicks between the beats, holds of 1 or 2 beats. 14. ARMS THAT LOOK RIGHT - The elbow stays below the wrist. When the hand goes up (a wave), make an "L": the upper arm out, the elbow low, the forearm up, the hand swinging from the elbow. An elbow above the hand looks broken. - The forearm bends forward, never backwards. Check the SIDE view: a backwards elbow does not show from the front. - The arms never go inside the body. When code places a hand (for example "hand on the chest"), check points along the whole arm, not only the hand, and look at the pose from the camera. 15. THE SAME EVERY TIME - Run the motion as a small simulation from a fixed start time with a fixed step (ours: 600 steps a second). Then any frame can be rendered alone and every render gives the same frames. Where the numbers come from: animation practice and robot research (Disney Research's bipedal robot character, Anki's Cozmo robot, studies of human blink rates, balancing-robot papers). Tune them to your character.