Coordinate Transformation Problem

As to the other, you haven’t shown us what “contactPoint” is or where it comes from.

As written, you have basically said:
“I put my box at A but A is not what I expect.”

…and we don’t know anything about A.