Translation matrix in vmath (SOLVED)

#1

Would be nice to be able to do a little bit more with vmath. For instance like creating a translation matrix from a matrix constructor. Now I can set the fields of the matrix manually, but having a constructor for it would be preferable.

Also it would be nice to be able to do go.get_world_matrix(). Especially when doing input picking.

1 Like

#2

Translation matrix constructor sounds like a good addition. Getting the world matrix should be pretty straightforward. Since you can use any matrix in the render script (or several) you can just pass the one you want to use for picking with a message.

0 Likes

#3

Yes but there is no way of accessing the matrix of a game object. That is what I want.

0 Likes

#4

The closest thing would be to create it myself from translation, rotation and scale of the object, but that would most probably not get the scaling from parents (and there is no api for scene graph access). And it would produce a lot more garbage than simply getting the transform that most likely already exists in the engine internals.

0 Likes

#5

Ok, I understand your request. Adding an issue.

DEF-1548

0 Likes

#6

Solved in 1.2.159

1 Like