Esempio n. 1
0
 def copy_rot(self, rot, builder):
     yaw = rot.Yaw()
     if self.should_flip_field:
         yaw = yaw + math.pi if yaw < 0 else yaw - math.pi
     return Rotator.CreateRotator(builder, rot.Pitch(), yaw, rot.Roll())
Esempio n. 2
0
 def copy_rot(self, rot, builder):
     yaw = rot.yaw
     if self.should_flip_field:
         yaw = yaw + math.pi if yaw < 0 else yaw - math.pi
     return Rotator.CreateRotator(builder, rot.pitch, yaw, rot.roll)
Esempio n. 3
0
def copy_rot(rot, builder):
    return Rotator.CreateRotator(builder, rot.Pitch(), rot.Yaw(), rot.Roll())