scene2d :: Sprite :: velocity_angle
Often used to rotate the displayed image with the correct angle
# Return the current angle of velocity # Often used to rotate the displayed image with the correct angle fun velocity_angle: Float do return atan2(self.vx.to_f, -self.vy.to_f) end