Hey guys,
Was wondering if somebody could help out? How can you convert:
moveDirection.z = 20;
to local space?
Is it possible?
Thanks!
Hey guys,
Was wondering if somebody could help out? How can you convert:
moveDirection.z = 20;
to local space?
Is it possible?
Thanks!
Presuming you have that in a Vector3:
var localVector = transform.InverseTransformDirection(moveDirection);
Yeah, that's what I was looking for. Thanks a million.
– ShinyTaco