In this Unreal Engine 5 tutorial, we dive into the Object Position material node!
Learn how this node reads your mesh’s exact world transform and bounds center, and how to harness that data to create dynamic material effects—including rolling/rotating meshes automatically based on movement while preventing clipping through the floor using World Position Offset (WPO).
https://dev.epicgames.com/community/learning/tutorials/l0Rye/unreal-engine-mastering-the-object-position-material-node-in-ue5-full-node-series