# Magnetic field for orbitted movement

**URL:** <https://forum.kirupa.com/t/magnetic-field-for-orbitted-movement/288662>\
**Category:** programming\
**Created:** [May 19, 2009, 2:55pm UTC](https://forum.kirupa.com/t/magnetic-field-for-orbitted-movement/288662 "2009-05-19T14:55:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![realitybites](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@realitybites](https://forum.kirupa.com/u/realitybites)\
**Post date:** [May 19, 2009, 2:55pm UTC](https://forum.kirupa.com/t/magnetic-field-for-orbitted-movement/288662/1 "2009-05-19T14:55:59Z")

</div>

I have a number of particles, moving on an elliptical orbit. What I want to do is this:

When I bring a magnet closer to the orbit, the orbit will be morphed, meaning particles will lean towards the magnetic field. When I put away the magnet, they will go back to the original orbit.

But I have no idea how to approach this. I prepared the elliptic movement, but how would I integrate the magnet into this?

Math & physics & programming is not a problem. do not hesitate to recommend something complex.
