# Object rotate with mouse \[mx\]

**URL:** https://forum.kirupa.com/t/object-rotate-with-mouse-mx/19634
**Category:** Uncategorized
**Created:** [April 30, 2003, 2:32am UTC](https://forum.kirupa.com/t/object-rotate-with-mouse-mx/19634 "2003-04-30T02:32:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Scootman](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Scootman](https://forum.kirupa.com/u/Scootman)
#### Post date: [April 30, 2003, 2:32am UTC](https://forum.kirupa.com/t/object-rotate-with-mouse-mx/19634/1 "2003-04-30T02:32:20Z")

</div>

i want a ship or something in the center of the stage and to be able to click and the thing will shoot at the mouse… i know how to get it to shoot at the angle… i just dont know how to get the rotation with the mouse… i can do it with keys but not with the mouse… hope you understand what i need… object rotates pointing to mouse… please help

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 30, 2003, 3:50am UTC](https://forum.kirupa.com/t/object-rotate-with-mouse-mx/19634/2 "2003-04-30T03:50:55Z")

</div>

[http://moock.org/asdg/codedepot/](http://moock.org/asdg/codedepot/) -\> motion \> follow the leader -\> rotate towards the mouse

Download the example file… interesting stuff there 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 30, 2003, 11:09pm UTC](https://forum.kirupa.com/t/object-rotate-with-mouse-mx/19634/3 "2003-04-30T23:09:40Z")

</div>

thanks
