Saturday, June 23, 2007


I haven't posted much yet. This is because there hasn't been much to show off yet. Now, there is. I've got fields working automatically from coreloop. Here's an example....
import soy
sce = soy.Scene()
cam = soy.bodies.Camera(sce)
cam.position = (0,0,10)
py1 = soy.bodies.Pyramid(sce)
py1.position = (-2,0,0)
py2 = soy.bodies.Pyramid(sce)
py2.position = (0,0,0)
py3 = soy.bodies.Pyramid(sce)
py3.position = (2,0,0)
scr = soy.Screen()
win = soy.Window(scr, size=(640,480))
pro = soy.widgets.Projector(win, size=(640,480), camera=cam)
m = soy.bodies.fields.Monopole(sce)
I haven't got around to normalizing the acceleration based on the timestep, but it's coming.

Edit: updated example to avoid warning

Sunday, June 3, 2007

ODE to joy

Today I familiarized myself with a good portion of the code and I've made the first step towards my actual project - working ODE code. It's only a test routine to nudge a body slightly, but now I know how to add ODE functions & use them on bodies. This week is going to be far more productive than last week was.