Search found 3 matches

by BagarraoEduardo
Fri Apr 20, 2018 11:13 am
Forum: Support and Development
Topic: Problem while inverting direction on collision
Replies: 4
Views: 2788

Re: Problem while inverting direction on collision

- In the collision of the ball and the paddle the ball pushes the paddle off the screen --> Depends on the mass and velocity of the objects. Heavier bodies tend to push lighter bodies, that's just how physics works. A naive solution could be increase the density of the paddle. If you set the type o...
by BagarraoEduardo
Fri Apr 20, 2018 11:12 am
Forum: Support and Development
Topic: Problem while inverting direction on collision
Replies: 4
Views: 2788

Re: Problem while inverting direction on collision

I think you're gonna have a hard time making Pong work with accurate physics simulation, and you would be better off making your own ball and paddle 'physics' that is better suited for this type of game. Yeah you're right :) I'll started that way but I thought it would be a bad approach, but I'll m...
by BagarraoEduardo
Thu Apr 19, 2018 7:05 pm
Forum: Support and Development
Topic: Problem while inverting direction on collision
Replies: 4
Views: 2788

Problem while inverting direction on collision

Hello all! :awesome: :awesome: I'm starting to make a single game in LOVE 2D(Pong) and I'm struggling in the following things: - Problems on inverting direction when a ball collides on paddle --> The ball goes in one direction, but on the beginContact() function I inverted direction but still don't ...