Beispiel #1
0
        public void Move(Vector2 direction)
        {
            var timeDelta = Time.deltaTime;

            View.Body.Rotate(Vector3.up, direction.x * Model.RotateSpeed * timeDelta);
            View.Body.Translate(0, 0, direction.y * Model.MoveSpeed * timeDelta);
            Moved.SafeRaise(this);
        }