Jump to content

4 x 4 Entity Matrix


Pixel Perfect
 Share

Recommended Posts

Does anyone know how this matrix is constructed (as per SetEntityMatrix and GetEntityMatrix). What is the order of the four TVec4 vectors?

 

The wiki seems to mention 3 ... position, rotation, and scale ... so whats the forth and are they in that order?

 

I'm reading in the vegetation binary data and trying to interpret it.

Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++

Link to comment
Share on other sites

A 4x4 matrix does not contain euler rotations. The easiest way to get these is to call SetEntityMatrix with this matrix, then retrieve the entity's rotation.

My job is to make tools you love, with the features you want, and performance you can't live without.

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.

Guest
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.

 Share

×
×
  • Create New...