Drought.World.Camera.update C# (CSharp) Method

update() public method

public update ( ) : void
return void
        public void update()
        {
            if (isRestricted && eyeVector.Z < levelInfo.getHeight(eyeVector.X, eyeVector.Y) + cameraStand)
                eyeVector.Z = levelInfo.getHeight(eyeVector.X, eyeVector.Y) + cameraStand;

            Matrix cameraRotation = Matrix.CreateRotationX(cameraRotationAngles.X) * Matrix.CreateRotationZ(cameraRotationAngles.Z);
            focusVector = eyeVector + Vector3.Transform(new Vector3(0, 1, 0), cameraRotation);
            upVector = Vector3.Transform(new Vector3(0, 0, 1), cameraRotation);
        }