Hello - This is my first post on the forum. So tell me if its the wrong place to post or anything.
Anyway - to the case:
I've been tinkering with a pinball-game. The problem: The ball-sprite (when moving really fast) sometimes got stuck on a star-shaped sprite (with physics-behavior). I went a bit loopy trying to figure out why/how to fix it. I tried all sorts of things, like changing the physics parameters of the ball - AND the star it got stuck in (angular damping/density/whatev - but nothing really worked (or it worked but the game then didn't perform as I wanted it to) - and I searched a lot on the c3-forums but nothing I found helped.
Then I got to thinking: The walls/flippers/objects all had really simple collision-polygons - either a circle or just a few collision-points. BUT - The star had many - (and rotating) so I thaught it might be that the processing/cpu just couldnt "keep up" - when and only when the ball was going really fast. So what I did was that I moved every collision-point of the star a little bit away from the sprite/image - so that the ball-sprite would have a few milliseconds more before "overlapping" the star (does that make sense?) Anyway - after I did that, it hasnt happened! (yet).
So I thaught I'd post this if anybody else has the same problem.
And if for some reason this makes no sense/is wrong and turns out to be a "placebo-effect" or wishful thinking - please let me know. (and why)
Game can be played/tested on
https://helledussen.com/spill/kpinball
Primarily made for mobile device (tap on green "fish" to launch ball - then tap right/left sheep)
But can also be played on pc (Space to launch ball - right/left arrow keys)
Peace :-)