[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] physics basics?



Michal Wallace <sabren@manifestation.com> writes:

> Grand creates a world where at each tick of the clock,
> simulated forces are applied to simulated objects. In other
> words, rather than hard coding the bouncing equation, he
> gives code for gravity and inertia and the correct path of
> the ball emerges naturally.

But you run the risk of getting screwed by roundoff with this
approach, e.g. suddenly your ball ends up on the other side of the
barrier or something.

Me, I've always wanted to write a relativistic space game, with time
dilation and so on.  But I'm wierd :)

Cheers,
M.

-- 
40. There are two ways to write error-free programs; only the third
    one works.
  -- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org