Exemplo n.º 1
0
 def onAddAccelSphereButton(self):
     self.AccelSphere_toggle = not self.AccelSphere_toggle
     if not self.AccelSphere_toggle:
         self.AccelSphere = World.buildAccelSphere([self.XVelocity_drawing*self.ActionSet.t_f,self.YVelocity_drawing*self.ActionSet.t_f,self.ZVelocity_drawing*self.ActionSet.t_f], a_max=0.0)
         self.AccelArrow = World.buildAccelArrow([0,0,0], 0.0+9.8, 0.0, 0.0)
     else:
         self.redrawAccelSphere()
Exemplo n.º 2
0
 def redrawAccelSphere(self):
     if self.AccelSphere_toggle:
         self.AccelSphere = World.buildAccelSphere([self.XVelocity_drawing*self.ActionSet.t_f,self.YVelocity_drawing*self.ActionSet.t_f,self.ZVelocity_drawing*self.ActionSet.t_f], a_max=self.ActionSet.a_max*0.125)
         self.AccelArrow = World.buildAccelArrow([0,0,0], self.accelThrust_drawing, self.roll_drawing, self.pitch_drawing)
         if self.Gravity_toggle:
              World.gravitizeAccelSphere(self.AccelSphere, gravity_max=9.8*0.125)