# Rotating something in 3D

**URL:** <https://forum.kirupa.com/t/rotating-something-in-3d/50232>\
**Category:** Uncategorized\
**Created:** [April 30, 2004, 4:21pm UTC](https://forum.kirupa.com/t/rotating-something-in-3d/50232 "2004-04-30T16:21:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brockus](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@brockus](https://forum.kirupa.com/u/brockus)\
**Post date:** [April 30, 2004, 4:21pm UTC](https://forum.kirupa.com/t/rotating-something-in-3d/50232/1 "2004-04-30T16:21:15Z")

</div>

I have a frame animation of an object spinning. I would like to control is spinning left or right either by the user’s mousemovement or a left and right arrow below. Can anyone point me in the right direction to find some code to do this. I have tried searching but as usual I can’t get the right keywords in.

Thanks…
