Differences Between TransformVector,TransformPoint and TransformDirection

var initialPosition = new Vector(1,1,1);
var parameterPosition = new Vector(2,0,4);
var targetPosition = transform.TransformPoint(parameterPosition);
var scaleFactor = new Vector3(2,2,2);
transform.localScale = scaleFactor;
targetPosition = transform.TransformDirection(parameterPosition);
var targetPosition = transform.TransformVector(parameterPosition);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store