Files
sanspie 67e2d77823 Stage 11f1–11f2: documentation style and rewrite (D347)
docs/style.md, docs/glossary.md, style checks DOC010–DOC023 and docs report; the site in a light theme; the Editor, Aego Script, Gameplay, Physics, Scenes, Rendering, Tools and Reference sections rewritten.
2026-10-25 15:31:22 +03:00

15 lines
534 B
Markdown

---
code: PHY007
severity: warning
title: "A moving body teleported from Update"
example: PHY007.aescene
---
A script changed the position of a dynamic or kinematic body in `Update`, outside the fixed step.
**Fix.** Move bodies in `FixedUpdate`, with forces, impulses or a velocity, or with `MoveTo` on a kinematic body; set the position directly only to teleport on purpose.
## Details
The change is applied at the next physics step as a teleport: no velocity, no collisions on the way. The example script does this every frame.