body
The cat rig: a barrel that bobs, four two-bone legs, a chain of tail joints, and a head pivot carrying ears, eyes, muzzle and whiskers — about forty primitives under one root. Nothing here is skinned and nothing plays a clip.
game.cats.body
The cat rig: a barrel that bobs, four two-bone legs, a chain of tail joints, and a head pivot carrying ears, eyes, muzzle and whiskers — about forty primitives under one root. Nothing here is skinned and nothing plays a clip.
local Body = require("game.cats.body")
local rig = Body.build(breed, parentEntity)
Body.pose(rig, { t = now, gait = phase, speed01 = 0.8, arousal = 1,
sit = 0, sleep = 0, headYaw = 0.3, headPitch = -0.1,
earAim = 0.2, blink = 0 })
Body.setEyeGlow(rig, 2.4)
Body.destroy(rig)
Two things it works out from a cat's own proportions rather than from a constant: the hind bones are longer by exactly what the resting hock bend costs in reach, so all four paws touch the floor; and the height and incline of a sit come from the two conditions that define one — rump on the floor, forelegs straight under a raised chest — so a short round cat barely tips and a leggy one sits bolt upright.
Scoped to this part · feeds back into the world's score.