# Cube rotation

**URL:** https://forum.kirupa.com/t/cube-rotation/199753
**Category:** Uncategorized
**Created:** [September 5, 2006, 6:09pm UTC](https://forum.kirupa.com/t/cube-rotation/199753 "2006-09-05T18:09:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![aBnest](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/abnest/32/2177_2.png) [@aBnest](https://forum.kirupa.com/u/aBnest)
#### Post date: [September 5, 2006, 6:09pm UTC](https://forum.kirupa.com/t/cube-rotation/199753/1 "2006-09-05T18:09:39Z")

</div>

:red: I really need some help with this code:  
I modified the code from the kirupa so i can spin the cube with the mouse(drag)  
but my problem is that i can’t seem to get the code wright on the rotation part  
it spins just fine until one point (on x axis and on y axis to) point when the roatation of the cube is reversed.(the axis are reversed or somtin - i don’t really get it)  
I tryed somtin but i got really really lost.  
Can anyone help me … Please please…
