How to roll a cube and a tetrahedron over its edge?

Hello guys,

for a third person view puzzle platformer I would like the player to control a cube and sometimes a tetrahedron to move around. The movement for the cube supposed to be like this in this video:

The direction is depending on the cameras angle, so if the player presses W , the cube moves away from the camera, but it always turns over on its edge, so movement is only possible in just 4 directions.

The same movement should work with the tetrahedron, but obviously with just 3 directions, since it has only 3 edges in contact with the floor.

One important thing, sometimes the “floor” is uneven so there are times when the object is not fully in contact with it, or like it’s on the side of a platform and some minor part (like one corner) of it is over the edge of the platform.

Any simple ideas how to achieve this? I have ideas but they are way too complicated to be the right solution for this.

Any help or idea is really appreciated. Thank you! :slight_smile:

Hello,

This can be helpful → Tutorial: How To Make a Cube Roll On A Grid in Unreal Engine 4 » cybereality

I am also looking for the same solution. Do share if you find any.

Regards
Sagar

I know this is quite a while ago, but did you find a solution eventually?