CannonGame.Cannon.updateRotation C# (CSharp) 메소드

updateRotation() 공개 메소드

public updateRotation ( ) : void
리턴 void
        public void updateRotation()
        {
            rotationAngle = (float)Math.Atan2(Direction.Y, Direction.X);
            rotationAngle += MathHelper.Pi / 2;
            float circle = MathHelper.Pi * 2;
            rotationAngle = rotationAngle % circle;
        }