Jittery Physics (Solved)

Discussion and feedback on Construct 2

Post » Sun Sep 22, 2013 12:15 am

For quite a while I've had an issue with I've got multiple physics objects stacked (despite having 0 elasticity)

They appeared to be jittery/bouncy/unstable and this was down to pixel rounding. I was looking for quite a while for fixes and causes of this problem; Now I've solved it I figured id post it here for others who may encounter this torment in the future.

Thinking about it now it would appear to be quite obvious, the collision polygon could sit above the half pixel moving it up and falling down or moving down and bouncing back up because of the collision.

JWstudios2013-09-23 08:11:17
B
10
S
2
G
1
Posts: 77
Reputation: 1,278

Post » Mon Sep 23, 2013 12:10 am

Wow, I ended up doing something really convoluted the last time I ran into this issue by making all the objects immovable until collided with, yielding mixed results.

I thought the pixel rounding was purely a visual thing.

I always wonder how games like Angry Birds solve it, whether they use a totally different engine, or a heavily modded version of Box2d when it comes to their rather complex layouts.
Image
B
27
S
9
G
5
Posts: 488
Reputation: 11,948

Post » Mon Sep 23, 2013 8:33 am

I thought so too, I've tried a lot of things including increasing my density by 100x, ramping up the linear and angular dampening. Not sure how it effects performance though I've only tested on my S3 since the change. It appears fine but It'll have some negative effect, its just how big.
B
10
S
2
G
1
Posts: 77
Reputation: 1,278


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests