[SOLVED] physic problem, the player overcomes object

Get help using Construct 2

Post » Mon Jul 03, 2017 8:03 pm

hi guys, sorry for my bad english, italian is my mothertongue. I' ve a problem with the physic that i can't solve.
My player (ball) overcomes the object (wall) when i rotate quickly.Image
Last edited by muttley1984 on Tue Jul 04, 2017 10:26 pm, edited 3 times in total.
Posts: 3
Reputation: 183

Post » Mon Jul 03, 2017 11:14 pm


All the time these kind of things happened to me was to do with bad collision lines, so there are 3 things you can do:

1) Double check your collision lines to make sure you have PERFECT boxes or circles.

2) If you are using 5 invisible rectangles for the box collision change it to 2 rectangles: 1 big one and one middle line.

3) If nothing works consider setting a limit on the speed of the rotation of the box to avoid this problem.

Good luck
Thank you to Construct 2 for giving me the ability to create games without programming knowledge.
My games & gaming portal = DolyGames
If anyone wants to cooperate to help each other Win-Win please email me - I am always happy to discover new opportunities.
Posts: 97
Reputation: 2,479

Post » Mon Jul 03, 2017 11:44 pm

Moving stuff by smaller amounts is one way that kind of works. The correct way to solve it is to only move objects with forces or setting velocity. That way the physics behavior can work best. Any time you set a position or angle it is like the object teleport and the physics behavior cannot account for it. As a note, the pin behavior which is likely used here is the same as setting position and angle.
Posts: 5,513
Reputation: 83,464

Post » Tue Jul 04, 2017 4:14 pm

Message: muttley1984 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Thank you for your reply. Unfortunately, this problem happens to slow speed too. I've modified an existing .capx downloaded from a tutorial. Please, could anyone help me and check this code? Thanks a lot!
I'm a newbie and I don't know where I'm wrong.

this is the link to my .capx, i hope it works
Posts: 3
Reputation: 183

Post » Tue Jul 04, 2017 8:03 pm

This is a (weak) proof of concept that it is (in given simple base example) possible to do it with a rotating Physics object. Just got to do every and any movement with Physics. Or, just stay in the Physics world. Pin dont count as physics, as already pointed out.

https://www.dropbox.com/s/b4f244k46a58l ... .capx?dl=0

Then again, if you rotate the world and adjust the angle of gravity, the possibility's are endless. It is just making a switch in the mind and looking at the problem from a different view.

https://www.dropbox.com/s/y1auwvqi52i24 ... .capx?dl=0
Posts: 2,493
Reputation: 21,450

Post » Tue Jul 04, 2017 9:35 pm

Thank you so much, you solved a problem that made me lose all night! I didn't know that I could rotate the whole layer instead of using "pin behavior". With your .capx I've learnt that it's possible to invert the gravity too. Wonderful, you have answered to my next question!
Posts: 3
Reputation: 183

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests