Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Some simple 2d game-related maths questions

by Anonymous Monk
on Aug 28, 2008 at 15:33 UTC ( #707519=note: print w/ replies, xml ) Need Help??


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
Re^3: Some simple 2d game-related maths questions
by GrandFather (Cardinal) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://707519]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2014-09-20 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls