Topic: matrix4 problem

Hi I'm having some problems with the following code, the error is
Expression of type 'irrlicht.core.matrix4' cannot be indexed
Here is a sample code:

Local irrMat:matrix4

irrMat[0] = [5]

I'm not sure if it's an error in the Irrlicht wrapper, or, an error with Blitzmax itself, I've had this problem before and couldn't fix it and gave up.

Thanks.

Re: matrix4 problem

greetings smile  are you trying to get a float ptr to the matrix?  matrix4 is a type so you cant directly access the contained float array with the syntax you are trying.  you can directly access the float array underneath using the pointer() method:

' dont forget to create the instance
Local irrMat:matrix4 = matrix4.create()

irrMat.pointer()[0] = 2.23

Re: matrix4 problem

I'm not sure exactly what's going on, I'm just trying to convert some c code to Blitzmax.  Thanks for your help, I'll try it out smile