Skip to content

GetCameraViewMatrix

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

GetCameraViewMatrix

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

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, GetCameraClipPlane, GetCameraClipPlaneEnabled, GetCameraProjectionMatrix, GetCameraStencil, ResetCameraProjectionMatrix, ResetCameraViewMatrix, SetCameraViewMatrix

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally