Also - There are built-in functions on FTransform to transform positions and directions to local space.