# 3d camera y rotation controlled by x co-ordinate of the mouse CS5

**URL:** <https://forum.kirupa.com/t/3d-camera-y-rotation-controlled-by-x-co-ordinate-of-the-mouse-cs5/328287>\
**Category:** flash\
**Created:** [May 4, 2012, 1:32pm UTC](https://forum.kirupa.com/t/3d-camera-y-rotation-controlled-by-x-co-ordinate-of-the-mouse-cs5/328287 "2012-05-04T13:32:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![discochimp](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@discochimp](https://forum.kirupa.com/u/discochimp)\
**Post date:** [May 4, 2012, 1:32pm UTC](https://forum.kirupa.com/t/3d-camera-y-rotation-controlled-by-x-co-ordinate-of-the-mouse-cs5/328287/1 "2012-05-04T13:32:01Z")

</div>

Hi, does anyone have a solution for this?

I have several objects in 3D space seperated in the z depth. i would like the camera to orbit round them within 100 degrees limit dependant on the where the mouse pointer is on the x axis.

I’ve tried timelining it but can’t get the keyframes to tween between the 2 positions. to be honest i think i’m moving the objects rather than the camera, either way it’s not ideal.

Thanks,

L
