- Home /
Vector3 matrix multiplication
Hi unity fellows,
I find the Unity "mix" of transforms and matrix4x4 little bit confusing. I have raycasted Vector3 that I would like to stick around with the collider/gameobject transform? How would you multiply Vector3 with transform? This is usually done with Matrix multiplication, but now I can`t get it work with unitys set of functions.
Thanks, -J
Anyone? I suppose I will have to start banging my head against this one again : )
Answer by flaviusxvii · Aug 04, 2014 at 08:42 PM
How would you multiply Vector3 with transform?
http://docs.unity3d.com/ScriptReference/Transform.TransformDirection.html
OR
http://docs.unity3d.com/ScriptReference/Transform.TransformPoint.html
Thanks! It was embarrassingly easy - I was fighting with the martices for no reason.
Your answer