diff options
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; |
