Exemplo n.º 1
0
        public void MoveCamera(double forward, double side)
        {
            var cameraForward = (_activeCamera.LookAt - _activeCamera.Position).Normalize(2);
            var cameraSide    = VectorHelpers.CrossProduct3D(cameraForward, _activeCamera.UpVector);

            _activeCamera.Position = _activeCamera.Position + cameraForward * forward + cameraSide * side;
        }