Exemple #1
0
        public void Move()
        {
            var cordsToMove = TrigonometryHelper.MoveByIntoDirection(8, Angle);

            this._coordinates.x += cordsToMove.x;
            this._coordinates.y += cordsToMove.y;
        }
Exemple #2
0
        public void MoveForwards()
        {
            var speedToAdd = TrigonometryHelper.MoveByIntoDirection(0.1f, Angle);

            this.speedX += speedToAdd.x;
            this.speedY += speedToAdd.y;
        }