#Getting objects, up, right, forward vectors.

10 messages · Page 1 of 1 (latest)

humble wren
#

Hey just getting into graphics after a look break, so forgive me if its a simple question.

But would it be correct to say tht to get the up, right or forward vectors for an object you would multiply the objects model matrix by the corresponding vector in world space, eg (0, 1, 0) * Modelmatrix for getting the up vector?

Or is this the wrong way to do it.

#

ooops i ment getting objects, up, right, forward vectors*. as the title

#

Getting objects, up, right, forward vectors.

reef pendant
#

Yes

#

Assuming you want those vectors in world space

#

If you want the world basis vectors in model space you would do the inverse

humble wren
#

Also why does it work this way, mathematically? thts the thing thats puzzling me

reef pendant
#

M^-1 * v

#

That's sort of the definition of the inverse idk how more to explain it