On Aug 12, 3:02 pm, viblo <[email protected]> wrote: > Some hints: > 1. You still have offset on the circle shape (I see that I wrote > offset on the body and not on the shape in my previous post, sorry). > Its not needed and will just confuse you, so just send in (0,0) > instead >
Thanks, I was most definitely being confused by the offsets! <snip/> > 3. The move function is very strange, it doesnt even do anything with > the x and y it gets as parameters! :) I suggest you remove it > completely as I don't understand why you need it. And remove those > old_x/old_y variables as well. And change the update function to only > synchronize the body position in the pymunk world with the sprite > position in the pyglet world: > def update(self): x,y = self.body.position > Indeed it was very strange. I think it was largely a product of me trying everything and anything I could think of. <snip/> > Later on you will want to use another way to move the car by player > input and not just -+ on the position, but I think its good if you > straighten out the other stuff first :) There are some threads on the > chipmunk forum (http://www.slembcke.net/forums/viewforum.php?f=1) that > deals with top down cars that might be usefull to get this part right. <snip/> Thanks for the link. Now I have the basic bit working (working code here: http://pastebin.com/f216a1170) I can actually attempt to make the game! 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 -~----------~----~----~----~------~----~------~--~---
