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.
15 lines
534 B
Markdown
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.
|