dxGetMatElement#(entity%,row%,column%)

Parameters

entity - entity handle
row - matrix row index
column - matrix column index

Description

Returns the value of an element from within an entity's transformation matrix.

The transformation matrix is what is used by Blitz internally to position, scale and rotate entities.

dxGetMatElement is intended for use by advanced users only.

Example

; dxGetMatElement Example
; ---------------------

dxGraphics3D 640,480
dxSetBuffer dxBackBuffer()

camera=dxCreateCamera()
dxPositionEntity camera,0,0,-5

light=dxCreateLight()
dxRotateEntity light,90,0,0

; Create sphere
sphere=dxCreateSphere()

; Position, scale, rotate entity - try messing with these values to change dxGetMatElement value
dxPositionEntity sphere,0,0,0
dxScaleEntity sphere,1,2,3
dxRotateEntity sphere,0,0,0

While Not dxKeyDown(1)

dxRenderWorld

dxText 0,0,dxGetMatElement#(sphere,1,1)

dxFlip

Wend

End

Index