Exemplo n.º 1
0
        private void MoveRight(float axisValue)
        {
            if (Controller != null && axisValue != 0.0f)
            {
                // find out which way is right
                Rotator rotation    = GetControlRotation();
                Rotator yawRotation = new Rotator(0f, rotation.Yaw, 0f);
                Vector3 direction   = rotation.GetRightVector();

                // add movement in that direction
                AddMovementInput(direction, axisValue);
            }
        }