Skip to content

GetCameraViewMatrix

Narta Xaymar Dirks edited this page Nov 25, 2026 · 5 revisions

GetCameraViewMatrix BlitzLLVM

GetCameraViewMatrix:FloatMatrix4x3 camera:Int32
Parameter Mode Type Default Description
camera In Int32 required Camera handle.

Returns: The view matrix, from the world to the camera.

Description

BlitzLLVM This command does not exist in the original Blitz products. BlitzLLVM adds it.

Gives the view matrix of a camera: the one of SetCameraViewMatrix, or the one of the camera entity (from the world to where the entity is and how it is turned). This is a BlitzLLVM extension.

Examples

Graphics3D 320, 240, 0, 2
camera = CreateCamera()
PositionEntity camera, 5, 0, 0
Local view:FloatMatrix4x3 = GetCameraViewMatrix(camera)
Print view[3][0] ; -5.0

Related Commands

GetCameraBuffer BlitzLLVM, GetCameraClipPlane BlitzLLVM, GetCameraClipPlaneEnabled BlitzLLVM, GetCameraProjectionMatrix BlitzLLVM, GetCameraStencil BlitzLLVM, ResetCameraProjectionMatrix BlitzLLVM, ResetCameraViewMatrix BlitzLLVM, SetCameraViewMatrix BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally