# C++ Rolling cube controls

**URL:** <https://forums.unrealengine.com/t/c-rolling-cube-controls/304136>\
**Category:** C++\
**Tags:** rotating, unreal-engine, cube, question, CPP\
**Created:** [January 16, 2015, 12:07pm UTC](https://forums.unrealengine.com/t/c-rolling-cube-controls/304136 "2015-01-16T12:07:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peanut](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Peanut](https://forums.unrealengine.com/u/Peanut)\
**Post date:** [January 16, 2015, 12:07pm UTC](https://forums.unrealengine.com/t/c-rolling-cube-controls/304136/1 "2015-01-16T12:07:37Z")

</div>

Basically I want to have controls similar to:

https://store.steampowered.com/widget/38740

And have no idea where to start. I have a pawn with a cube mesh spawned in the world, but nothing beyond that. I want to know how to make the cube flip over onto another face based on which direction the user chooses.

Thanks in advance.
