# Math Help, Weight added to "throw" an image

**URL:** <https://forum.kirupa.com/t/math-help-weight-added-to-throw-an-image/199728>\
**Category:** Uncategorized\
**Created:** [September 5, 2006, 3:05pm UTC](https://forum.kirupa.com/t/math-help-weight-added-to-throw-an-image/199728 "2006-09-05T15:05:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xohol](https://avatars.discourse-cdn.com/v4/letter/x/59ef9b/32.png) [@xohol](https://forum.kirupa.com/u/xohol)\
**Post date:** [September 5, 2006, 3:05pm UTC](https://forum.kirupa.com/t/math-help-weight-added-to-throw-an-image/199728/1 "2006-09-05T15:05:12Z")

</div>

Hello,  
I am trying to acheive the following effect and need some help getting the math down.

I have a 360 degree panoramic photo. I set it so that you can drag the photo left or right to appear as though it will keep spinning around.

Right now i am using an onMouseMove to move the photo relative to the \_xmouse.

I would like to add a function that will give the photos weight, so the mouse can kind of throw the image.

so, when you drag the image and let go, it has weight and will slow down gradually as though the pictures was slid accross the screen. Thanks for any help. i have seen throw ball codes that are probably similar, but couldn’t get them to work with this applications.  
Q
