Help with a Physics Problem
Hi, everyone!
For my first Gamesalad endeavor, I'm working with kind of a Breakout/Blasterball idea. I've got my little paddle to launch the ball, but whenever it launches the ball it is knocked back, and subsequent hits of the ball will make the paddle slide downward ever so slightly until a button is pressed and the paddle moves again.
I have Restitution set to 0 on the Player (which by the way is using a circle collider instead of a rectangle) and it has a density of 100. The ball has a Restitution of 1 and a density of .4.
Any thoughts on why my player/paddle is being knocked back at launch and sliding away after other collisions?
For my first Gamesalad endeavor, I'm working with kind of a Breakout/Blasterball idea. I've got my little paddle to launch the ball, but whenever it launches the ball it is knocked back, and subsequent hits of the ball will make the paddle slide downward ever so slightly until a button is pressed and the paddle moves again.
I have Restitution set to 0 on the Player (which by the way is using a circle collider instead of a rectangle) and it has a density of 100. The ball has a Restitution of 1 and a density of .4.
Any thoughts on why my player/paddle is being knocked back at launch and sliding away after other collisions?
Comments
Make a new integer attribute inside of the paddle actor called initY (for initial Y position)
*Change attribute initY to self.position.Y
*Constrain attribue self.position.Y to initY
_______________________________
Follow me on Twitter!
https://twitter.com/SkyMapleGames
Enjoy.
Thanks, everyone. I managed to fix the Y axis so it wouldn't bounce down. It started bouncing across instead, so I gave it a density of 1000 and we're good. It still hiccups a bit at launch, but I can always tweak exactly where the ball instantiates from to fix that. Thanks for your help!
And yes, I scoured that Block breaker template but couldn't find the answer I needed. It's been very helpful in a lot of other spots, though!