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

**URL:** <https://forums.unrealengine.com/t/how-to-roll-a-cube-and-a-tetrahedron-over-its-edge/307341>\
**Category:** Blueprint\
**Tags:** unreal-engine, cube, question, Blueprint\
**Created:** [February 18, 2015, 5:48pm UTC](https://forums.unrealengine.com/t/how-to-roll-a-cube-and-a-tetrahedron-over-its-edge/307341 "2015-02-18T17:48:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Airner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Airner](https://forums.unrealengine.com/u/Airner)\
**Post date:** [February 18, 2015, 5:48pm UTC](https://forums.unrealengine.com/t/how-to-roll-a-cube-and-a-tetrahedron-over-its-edge/307341/1 "2015-02-18T17:48:25Z")

</div>

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! 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_38056301](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_38056301](https://forums.unrealengine.com/u/anonymous_user_38056301)\
**Post date:** [November 2, 2015, 5:51am UTC](https://forums.unrealengine.com/t/how-to-roll-a-cube-and-a-tetrahedron-over-its-edge/307341/2 "2015-11-02T05:51:03Z")

</div>

Hello,

This can be helpful → [Tutorial: How To Make a Cube Roll On A Grid in Unreal Engine 4 » cybereality](http://cybereality.com/?p=859)

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

Regards  
Sagar

---

<div class="post-metadata">

**Author:** ![ngerbens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ngerbens](https://forums.unrealengine.com/u/ngerbens)\
**Post date:** [June 18, 2019, 5:57pm UTC](https://forums.unrealengine.com/t/how-to-roll-a-cube-and-a-tetrahedron-over-its-edge/307341/3 "2019-06-18T17:57:30Z")

</div>

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