Objects don't seem to interact properly moving beyond 4 pixels a tick
Posted: Mon Jul 31, 2017 3:46 am
I am messing around with collision detection and I have seem to encountered a problem. If an object is moving any fast than around 4.2 pixels each tick. I was using something like:
If speed was more than 4.2 the game wouldn't update fast enough and would phase through objects because the collision detection wouldn't register until the object was already into it. How do I fix it?
Code: Select all
if love.keyboard.isDown("w") then
playerY = playerY - speed
end