My unfinished work in progress Gluball uses pyglet extensively. I'm
afraid I don't have the time or energy to document it, but feel free
to peek at the source. In particular, check out gamelib/util/
physics.py, gamelib.body.SingleBody and gamelib.unit.Unit. I think
your problem is probably that you need to set your shapes'
collision_type or layer attributes. I don't remember which.

http://www.github.com/irskep/gluball

On Aug 7, 7:31 pm, dorzey <[email protected]> wrote:
> I'm trying to create my first game and after some research it seems
> pymunk might be a nice way to add some physics to my top down racing
> game; or at least take care of collisions for me.
>
> However, my attempt (http://pastebin.com/m6d5a81c1) to use it has
> faltered.  Whilst the body, shape and sprite all seem to be having
> their position updated correctly my program fails to recognise, and
> then handle, the collision. What am I doing wrong?
>
> I'm probably missing something really obvious, but google and the
> pymunk api don't seem to hold the answer.
>
> I'd also be interested in links to any tutorials/examples on using
> pymunk with pyglet.
>
> Thanks,
>
> Dorzey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to