diff options
| author | esquizo <esquizo+noreply@esquizo.net> | 2026-05-21 17:15:21 -0300 |
|---|---|---|
| committer | esquizo <esquizo+noreply@esquizo.net> | 2026-05-21 17:15:40 -0300 |
| commit | 1047bed569232312619122f56ee4a6b2a323cc1c (patch) | |
| tree | 205107433012bb44df614a59b03a82384ec13188 /libphysics/tick.c | |
| parent | fb31105dcd1298c95d4a1eaf494c0aefa5e9be95 (diff) | |
libphysics: update de um tick
Diffstat (limited to 'libphysics/tick.c')
| -rw-r--r-- | libphysics/tick.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libphysics/tick.c b/libphysics/tick.c index f31930a..23f7fa0 100644 --- a/libphysics/tick.c +++ b/libphysics/tick.c @@ -39,6 +39,20 @@ phxtick(float delta) } void +phxfixtick(void) +{ + tick(); + for(int i = 0; i < phxbodypoolsize; i++) { + Body *b = phxbodypool + i; + if(!b->active) + continue; + + b->accel[0] = 0.0; + b->accel[1] = 0.0; + } +} + +void tick(void) { static int count = 0; |
