How to convert a world space vector to a local space vector


Imagine i apply a force in some object in the vector (0, 5, 0) in local coordinates. Then i know that the object starts to move in its LOOK direction in a velocity 5m/s. But now the object is moving in another vector (because it should be changed to the world coordinates). The object starts to decelerate and now i lost how is its velocity…

My question is: how can i get this object velocity on its axis instead of world coordinates? In Unity looks like there is a function for this: InverseTransformDirection is there something similar in Armory?

See the topic:

Edit: Already found the solution here

It is:

localSpaceVec.x =;
localSpaceVec.y =;
localSpaceVec.z =;