Jump to content

Changing a single value inside a matrix4


Recommended Posts

I'm trying to change a value inside a matrix. This seems more complicated than I initially thought it was.

It's a standard 4x4 matrix. I want to change the values for row 4, fields 1-3.
Looking at the spreadsheet, the matrix is represented as an array of 16 values, therefore I tied:


4@matx[12] = 0.0;
4@matx[13] = 0.0;


 ...which results in a VEX error 'Ambiguous call to array index operator'. Why? It's position 12 of that array, storing a float value I want to overwrite with a float value.

How that supposed to be done in VEX?

Edited by Whatsinaname
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...