Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 (Sage) 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 contemplating the Monastery: (10)
As of 2015-07-02 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (29 votes), past polls