Re: Newbie question about updating multiple objects ...

2006-06-09 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > All, > Hello and welcome to Python. > Apologies in advance: I'm new to Python and OO, and I'm sure this is a > really simple question, but I just can't seem to crack it on my own, or > through looking at examples. I'm playing around with VPython > (http://www.vypthon.org

Re: Newbie question about updating multiple objects ...

2006-06-08 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > > Any ideas? I've run out of options. Any help would be very *gratefully* > appreciatedd!! Your time-step is too small. Simply try: dt = .5, and you should see (slow) motion. Note, I'd update the position, then wrap it, rather than wrapping and then updating. -- --Sc

Re: Newbie question about updating multiple objects ...

2006-06-08 Thread donkeyboy
Awesome Diez -- I'll give this a go tomorrow, and hopefully it will all work!! Diez B. Roggisch wrote: > [EMAIL PROTECTED] wrote: > > I've copied in the code I'm using below, as it's not very long -- can > > anyone help me? > > I'll have some remarks: > > > > <--START--> > > > > from visual import

Re: Newbie question about updating multiple objects ...

2006-06-08 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > I've copied in the code I'm using below, as it's not very long -- can > anyone help me? I'll have some remarks: > <--START--> > > from visual import * > from random import randrange # to create random numbers > > numballs = 5 # number of balls > balls = [] # a list

Newbie question about updating multiple objects ...

2006-06-08 Thread fivenastydisco
All, Apologies in advance: I'm new to Python and OO, and I'm sure this is a really simple question, but I just can't seem to crack it on my own, or through looking at examples. I'm playing around with VPython (http://www.vypthon.org) to try and teach myself about objects: I've got a box that I've