Module drag
[hook-sys] Slows down specified entities over time, eventually stopping them.
Required hooks: update.
When an entity's speed drops below 1 game unit per update (~0.06U/s), its speed is set to zero and its drag comp is removed. On non-ECS builds, its velocity comp is also removed.
Comps
| velocity | [non-ECS] Move an entity at a specified velocity. |
| drag | Apply drag to an entity. |
Comps
See ecs for details of how to apply comps to an entity.