# How to fix this problem with collisions

Get help using Construct 3!

### » Sun Jul 09, 2017 6:23 pm

Hello,

I have a problem with collisions in C3, example in a gif:
http://gph.is/2u79Nfp

As you can see, the right ball is reacting correctly to the collision, but the left ball not. The left ball is 1 or 2 pixels away from the left wall, but when it collides with the top wall, it checks the left collision too without reason.

The balls are simply sprites with bullet behaviour that collide with solids, with -90 angle of motion, i tried with physics behaviour and it has the same problem.

There is some trick to make the balls work correctly?

B
32
S
7
G
2
Posts: 164
Reputation: 3,774

### » Sun Jul 09, 2017 8:02 pm

It looks to me like the left hand ball is colliding with the left wall before it reaches the top of the screen - have you checked in the debug to see what its angle and x value are as it moves up the screen? It might be that it's slightly off -90 degrees and so is incrementally edging to the left as it progresses.
B
22
S
9
G
4
Posts: 482
Reputation: 4,346

### » Sun Jul 09, 2017 9:14 pm

All objects are rectangles with 0 degrees. Balls have -90 degrees in angle of motion.

You can try it in 1 minute, in c3 or c2.
B
32
S
7
G
2
Posts: 164
Reputation: 3,774

### » Mon Jul 10, 2017 9:54 am

Can confirm, here's a cp3:

https://www.dropbox.com/s/dia9gfn1hm68l ... n.c3p?dl=0

Also if you check in debug there is a minute rounding error on the angle: it adds an extra -3x10^-14 to the angle - not sure why this would be.

Weirdl,y even though it appears that the position of the left wall is affecting the trajectory of the ball, it seems that the ball isn't colliding with it, if my collision check is working correctly (run in debug and check the no. variable for the left and top wall).
B
22
S
9
G
4
Posts: 482
Reputation: 4,346

### » Mon Jul 10, 2017 2:09 pm

I don't know if this can be considered a bug, maybe @Tom or @Ashley can give us a hint about this

I tried to move the start position of the ball and I needed 6 pixels to the right to get a correct collision, and its a lot, I'm not sure if it's a rounding problem.

Thanks for your answers mekonbecon, right know i prefer to forget my arkanoid twist idea because this collision problem affects it too much.
B
32
S
7
G
2
Posts: 164
Reputation: 3,774

### » Thu Jul 20, 2017 3:34 pm

Well, I'm sad and it's hard to buy C3 when things like incorrect collisions are not fixed or even get a response.
B
32
S
7
G
2
Posts: 164
Reputation: 3,774

### » Thu Jul 20, 2017 6:37 pm

Yea confirmed in C2 also.

i tried with different collision boxes and origin points and snapping but no change

I'm surprised its not been raised before.

Make a small cp3 and put it on the construct 3 git hub issues section.
My in work shmup game CYBERSTORM DEVLOG - "That Terminator is out there. It can't be bargained with. It can't be reasoned with. It doesn't feel pity, or remorse, or fear. And it absolutely will not stop, ever, until you are dead"
B
47
S
25
G
7
Posts: 372
Reputation: 8,450

### » Thu Jul 20, 2017 11:48 pm

B
22
S
9
G
4
Posts: 482
Reputation: 4,346