Author Topic: Collision Not Detected  (Read 2057 times)

radmoseph

  • Guest
Collision Not Detected
« on: Tue, Jun 9, 2009 »
At velocity ~840, sprites are no longer detected as colliding with blocks, at least when those blocks are 8 pixels thick and the object is 9.

Adam Atomic

  • Founder
  • Key Contributor
  • *****
  • Posts: 852
  • Karma: +0/-0
  • new dad
    • View Profile
    • Adam Atomic
Re: Collision Not Detected
« Reply #1 on: Tue, Jun 9, 2009 »
Yeah, this is because they are moving more than 9 pixels per frame - that is, one frame the object is on one side of the block, and the next it is on the other.

I have a few different solutions to this in my head but they all have downsides (weird secret limitations, slower collision checks, etc).  In my experience over the last few games, I've never needed anything that small to move that fast (at that size and speed the object is nearly impossible for players to track in a useful way)