Radegast.Rendering.Camera.LookAt C# (CSharp) Method

LookAt() public method

Sets the world in perspective of the camera
public LookAt ( ) : void
return void
        public void LookAt()
        {
            OpenTK.Matrix4 lookAt = OpenTK.Matrix4.LookAt(
                RenderPosition.X, RenderPosition.Y, RenderPosition.Z,
                RenderFocalPoint.X, RenderFocalPoint.Y, RenderFocalPoint.Z,
                0f, 0f, 1f);
            GL.MultMatrix(ref lookAt);
        }