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?
...
B
44
S
23
G
7
Posts: 288
Reputation: 7,989

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
135
S
33
G
17
Posts: 1,557
Reputation: 20,717

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
26
G
5
Posts: 1,146
Reputation: 9,829


Return to Construct 2 General

Who is online

Users browsing this forum: bobcgausa, Yahoo [Bot] and 8 guests