The proportion argument to advance_time() goes down within a round
sometimes. Is that a bug or am I doing something wrong? (This is with
9.1 so maybe this is fixed in newer versions. I can't get 10.1 to run,
it segfaults)
Test program:
#!/usr/bin/env python
import sys, os, os.path, soya
soya.init()
scene = soya.World()
class actor( soya.Volume ):
def begin_round(self):
super(actor, self).begin_round()
print "begin round"
def advance_time(self, proportion):
super(actor, self).advance_time(proportion)
print proportion
def end_round(self):
super(actor, self).end_round()
print "end round"
test = actor(scene, soya.Shape())
soya.Idler(scene).idle()
Output:
<snip...>
begin round
0.671195983887
0.328804016113
end round
begin round
0.338235527277
0.661764442921
end round
begin round
0.0112355547026
0.691962242126
0.296802192926
end round
<snip...>
-Mark Ivey-