If I recall correctly, there’s a local counterpart to this node: ObjectAlignedTexture.
If there isn’t, go inside this node (it’s a function) and Transform world position into local space.
But that only works for object position/rotation anim. Moving vertices are why standard UVs were invented. For baking, you can recreate the setup in Substance Painter (using Fill type of layers with Triplanar option).