DarkBASIC Professional Help Wiki
Advertisement


This command will return the Y position of the specified matrix in 3D space.

Syntax
Return Float=MATRIX POSITION Y(Matrix Number)
Parameters
Matrix Number

Integer
The matrix number

Returns

This command will return the y position of the specified matrix in 3D space

Description

The matrix number should be an integer value.

Example Code
make matrix 1,1000,1000,25,25

position matrix 1,50,0,100

 update matrix 1

print "matrix position x ",matrix position x(1)

print "matrix position y ",matrix position y(1)

print "matrix position z ",matrix position z(1)

do

loop

if matrix exist(1)=1 then delete matrix 1

end

if mouseclick()=1 then move camera 1

 if mouseclick()=2 then move camera -1

 update matrix 1

endwhile

if matrix exist(1)=1 then delete matrix 1

end
Advertisement