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