Hardoncollider bug?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

Hardoncollider bug?

Post by murks »

I've followed the hardoncollider tutorial and created the hardonpong (https://vrld.github.io/HardonCollider/tutorial.html).
Besides a dead link (http://www.headchant.com/2010/12/31/lov ... 2-pew-pew/) I've also seen some weird behavior.

I've seen this only once, so it's likely a rare bug.
The ball collided with a paddle and instead of bouncing off it jittered around on the paddle for a second or two before it bounced off.
I'm not sure this is an issue with hardoncollider or the tutorial code, but if it is an issue with hardoncollider I'll rather not use it for my next game.

Btw., I also wonder about those lines, they seem unecessary and removing them didn't seem to change anything:

Code: Select all

    -- keep the ball at the same speed as before
    local len = math.sqrt(ball.velocity.x^2 + ball.velocity.y^2)
    ball.velocity.x = ball.velocity.x / len * 100
    ball.velocity.y = ball.velocity.y / len * 100
Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests