I'm still really confused on what the purpose of the FallAction class is. Would it be possible to give a brief synopsis of what it entails. Specifically, I'd like to know what the following lines do. Thanks,
Code:
fall = viz.ActionData()
fall.data = [5,5,5]
fall.actionclass = FallAction
I was also wondering if there was any documentation as to what self._actiondata_.data[0] self._actiondata_.data[1] self._actiondata_.data[2] meant in the following code. Is there any additional information on the details of this actiondata declaration?
Code:
def begin(self,object):
self.distance = self._actiondata_.data[0]
self.speed = self._actiondata_.data[1]
self.anim = self._actiondata_.data[2]
self.amount = 0
object.state(1)
object.clear(1,0)
object.execute(self.anim)
yaw = object.get(viz.EULER)[0]
self.vector = [-math.sin(yaw*vizmat.DEG_TO_RAD),0,-math.cos(yaw*vizmat.DEG_TO_RAD)]
self.pos = object.get(viz.POSITION)