I want to be able to do the equivalent of this:
var worldpos = Vector3(0,0,2);
var invtPoint = transform.InverseTransformPoint( worldpos );
But without using a transform - so instead:
var pos = transform.position;
var rot = transform.rotation;
var worldpos = Vector3(0,0,2);
var invtPoint = // ???
This previous answer kindly showed me a simple way to calculate the other way around (TransformPoint):
var tPoint = rotation * localpos + position;
… but now I want to convert from world to local, rather than local to world. Thanks in advance!