CannonGame.Ball.update C# (CSharp) 메소드

update() 공개 메소드

public update ( ) : void
리턴 void
        public void update()
        {
            wallCollisionCheck();
            Velocity *= friction;
            if (Velocity.Length() < 0.1)  Velocity = Vector2.Zero;
            Position += Velocity;
        }