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())
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)
def copy_rot(rot, builder): return Rotator.CreateRotator(builder, rot.Pitch(), rot.Yaw(), rot.Roll())