Rotate object around a non-local pivot point during runtime

Noob here.

I have a cube in my game. Whilst the game is running, I want the cube to ‘roll over’.

So I would like to set a pivot point (which is technically local) at one of its lower edges, and then rotate it 180 degrees around this point.

However, I have searched and cannot find a way to set a pivot point that is technically local.

Any ideas?

dynamic -> :smiley:


CheckThisOut2.blend (444 KB)


have a empty at the center, parent the cube to it,

unparent in game, move the empty to the corner, parent cube to empty, rotate, repeat,


TaDa.blend (461 KB)