From 1047bed569232312619122f56ee4a6b2a323cc1c Mon Sep 17 00:00:00 2001 From: esquizo Date: Thu, 21 May 2026 17:15:21 -0300 Subject: libphysics: update de um tick --- libphysics/tick.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libphysics/tick.c') diff --git a/libphysics/tick.c b/libphysics/tick.c index f31930a..23f7fa0 100644 --- a/libphysics/tick.c +++ b/libphysics/tick.c @@ -38,6 +38,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) { -- cgit v1.2.3