E
eDevGames
Guest
I have been having issues with the default physics 2d engine. I have two 2d games, a minigolf, and a pool game, both of which use the built-in physics engine in a top-down format. The issue is that when the balls bounce off walls, their collision isn't in the same direction. So basically if the ball bounces off the walls four times, it can go from a direction of 35 degrees to being perpendicular to the walls. I have tried changing the different values various times, but have had no luck yet.
The physics properties of the golf ball:
Density: .5
Restitution: .8 (I have tried 0 and 1 for this already)
Collision Group: 1
Linear Damping: .6 (I have tried 0 for this already)
Angular Damping: .1 (I have tried 0 for this already)
Friction: 1
Golf Wall:
Density: 0
Restitution: 0 (I have tried 0 and .8)
Linear Damping: .4
Angular Damping: .0
For the variables above, there are been other options I have tried in the past that I cannot remember the exact values.
The physics properties of the golf ball:
Density: .5
Restitution: .8 (I have tried 0 and 1 for this already)
Collision Group: 1
Linear Damping: .6 (I have tried 0 for this already)
Angular Damping: .1 (I have tried 0 for this already)
Friction: 1
Golf Wall:
Density: 0
Restitution: 0 (I have tried 0 and .8)
Linear Damping: .4
Angular Damping: .0
For the variables above, there are been other options I have tried in the past that I cannot remember the exact values.