[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
[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
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
[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
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