You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
304 B
16 lines
304 B
#!/usr/bin/env python |
|
# simple test of wind generation code |
|
|
|
import util, euclid, time, random |
|
|
|
wind = util.Wind('3,90,0.1') |
|
|
|
t0 = time.time() |
|
velocity = euclid.Vector3(0,0,0) |
|
|
|
t = 0 |
|
deltat = 0.01 |
|
|
|
while t < 60: |
|
print("%.4f %f" % (t, wind.accel(velocity, deltat=deltat).magnitude())) |
|
t += deltat
|
|
|