Пример #1
0
        //apply suggested movement since no collision will occur if the player moves to that position
        protected virtual void ApplyInput(GameTime gameTime)
        {
            //was a move/rotate key pressed, if so then these values will be > 0 in dimension
            if (Transform3D.TranslateIncrement != Vector3.Zero)
            {
                Transform3D.TranslateBy(Transform3D.TranslateIncrement);
                Transform3D.TranslateIncrement = Vector3.Zero;
            }

            if (Transform3D.RotateIncrement != 0)
            {
                Transform3D.RotateAroundUpBy(Transform3D.RotateIncrement);
            }
        }