Skip to content

GetMatElement

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

GetMatElement

GetMatElement:Float32 entity:Int32, row:Int32, column:Int32
Parameter Mode Type Default Description
entity In Int32 required Entity handle.
row In Int32 required Row of the matrix, 0 to 3.
column In Int32 required Column of the matrix, 0 to 2.

Returns: The value of the matrix element.

Description

Reads one number from the world transformation of the entity. Row and column count from 0. Columns 0 to 2 hold the axes of the entity with its scale, so (0, 0), (0, 1) and (0, 2) are the X axis; row 3 holds the position. It is mostly useful when you need the direction an entity faces without doing the angle math.

Related Commands

FreeEntity, GetChild, GetParent, HideEntity

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally