Ball gets stuck in corner when force lowered

Discussion and feedback on Construct 2

Post » Thu Dec 01, 2016 6:16 pm

New to Construct, trying to make a ball that bounces around in a box
I have run into a couple of problems, when i reduce the angular force on the ball, and it hits directly in a corner it just sets there. Also, when it gets close to a corner at a slight angle, instead of bouncing off the 2nd edge, it rolls along it. Any advise?


Thanks!
B
9
S
1
Posts: 3
Reputation: 431

Post » Fri Dec 02, 2016 9:28 am

Make sure ur collision polygon is not square. Are u using physics or bullet behaviour to make bounce?
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: 373
Reputation: 8,452

Post » Fri Dec 02, 2016 11:42 am

Provide a .capx with the problem, so we can take a look at your problem directly.
B
138
S
33
G
17
Posts: 1,561
Reputation: 20,839

Post » Sat Dec 03, 2016 4:04 am

Yea, it is set to circle. Here is an example. If you set the angle to 45, it just sticks in the corner.
https://www.dropbox.com/s/4cxu5w4gzj1k5 ... .capx?dl=0

Thanks for the help!
B
9
S
1
Posts: 3
Reputation: 431

Post » Sat Dec 03, 2016 10:38 am

@DTernes ,

The problem in your capx is that you are constantly applying a force on the ball, so, it's being pushed on the wall and can't bounce off it. Use an impulse instead and it will bounce as expected.
However, with a ball mass of 1, an impulse value lower than 0.7 will also produce a weird slide after the 1rst bounce. I don't know why.

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

I hope this helps!
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 16 guests