rendered paste body from visual import *
>>>
>>>
...
>>> floor = box (pos=(0,0,0), length=4, height=0.5, width=4, color=color.blue)
Gtk-WARNING **: Unable to locate loadable module in module_path: "libsmooth.so",
Gtk-WARNING **: Unable to locate loadable module in module_path: "libsmooth.so",
Gtk-WARNING **: Unable to locate loadable module in module_path: "libsmooth.so",
Gtk-WARNING **: Unable to locate loadable module in module_path: "libsmooth.so",
Gtk-WARNING **: Unable to locate loadable module in module_path: "libsmooth.so",
Gtk-WARNING **: Unable to locate loadable module in module_path: "libsmooth.so",
Gtk-WARNING **: Unable to locate loadable module in module_path: "libsmooth.so",>>>
>>> ball = sphere (pos=(0,4,0), radius=1, color=color.red)
>>>
>>> ball.velocity = vector(0,-1,0)
>>>
>>> dt = 0.01
>>>
>>>
...
>>> while 1:
...
File "<stdin>", line 2
^
IndentationError: expected an indented block
>>> rate (100)
>>>
>>> ball.pos = ball.pos + ball.velocity*dt
>>>
>>> if ball.y < ball.radius:
...
File "<stdin>", line 2
^
IndentationError: expected an indented block
>>> ball.velocity.y = -ball.velocity.y
>>>
>>> else:
File "<stdin>", line 1
else:
^
SyntaxError: invalid syntax
>>>
>>> ball.velocity.y = ball.velocity.y - 9.8*dt