def set_velocity_and_yaw(self, body_velocity: Vec2d, yaw: float) -> None: """ Sets velocity and yaw (angle). It's more efficient to do both at once (since world velocity depends on both), so this setter sets both at once. """ self.__body_velocity = body_velocity Vehicle.angle.fset(self, yaw) self.velocity = body_velocity.rotated(yaw)