in reply to Re: Some simple 2d game-related maths questions
in thread Some simple 2d game-related maths questions

To prevent such cases, I have generally taken the *previous* position value when deciding. "They're touching now, and it came from thataway."
  • Comment on Re^2: Some simple 2d game-related maths questions

Replies are listed 'Best First'.
Re^3: Some simple 2d game-related maths questions
by GrandFather (Saint) on Aug 28, 2008 at 21:20 UTC

    So in fact you need to perform a complicated area intersection with the area traced out by the moving object and the boundary line unless you can guarantee that the object won't move twice it's "diameter" or more in a single update.


    Perl reduces RSI - it saves typing