Aego Русский

Common mistakes

These are the mistakes that most often make physics feel wrong. Each one names what you see and what to change.

On this page

A dynamic body jitters when moved

Moving a dynamic body with SetPosition from Update fights the solver. Use SetVelocity, forces or Teleport from FixedUpdate.

A jump is sometimes missed

Read action-based input.Pressed("Jump") directly in FixedUpdate. A press is queued until the first fixed step, even when the rendering frame has no fixed steps, and is not repeated by subsequent steps. input.Down means held, not newly pressed: it is not a substitute for a jump edge. If another input context consumes the action, check that context and its bindings. See Input: frames and fixed steps.

A circle collider reports a problem

Circles and capsules need a uniform scale. Change the collider's fields instead of stretching the node.

Objects fall through thin floors

Mark small fast bodies as Bullet, or make the floor thicker.

Tall towers wobble

Use the stiff profile in Settings, stagger the boxes like bricks, or build the tower as one body.

Nothing collides

Check both bodies' masks and the layer matrix, and that the node is 2D and not under a 3D parent.

Motion feels floaty

Gravity 9.81 assumes a unit is about a metre. A 64-pixel sprite at zoom 64 is one unit.