Пример #1
0
 def copy_ball(self, ball, builder):
     phys = ball.physics
     TinyBall.TinyBallStart(builder)
     TinyBall.TinyBallAddLocation(builder,
                                  self.copy_v3(phys.location, builder))
     TinyBall.TinyBallAddVelocity(builder,
                                  self.copy_v3(phys.velocity, builder))
     return TinyBall.TinyBallEnd(builder)
Пример #2
0
 def copy_ball(self, ball, builder):
     phys = ball.Physics()
     TinyBall.TinyBallStart(builder)
     TinyBall.TinyBallAddLocation(builder,
                                  self.copy_v3(phys.Location(), builder))
     TinyBall.TinyBallAddVelocity(builder,
                                  self.copy_v3(phys.Velocity(), builder))
     return TinyBall.TinyBallEnd(builder)