hi guys ~_O, in a material, I want to check whether a vertex is inside a UBoxCompoent or not! to do that i send the inverse transform and the extent of the box to the material.
when i get inverse transform with below code everything works fine
FMatrix matrix = boxComponent->ComponentToWorld.ToInverseMatrixWithScale();
but with this code
FMatrix matrix = box->ComponentToWorld.Inverse().ToMatrixWithScale();
when i set nonuniform scale and nonzero rotation to my box it gives wrong result! i don’t understand why they give different results !? O_o