# Magnetic physics

This topic is 4647 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Does anyone have any links regarding magnetic physics simulation, preferably in regard to a 3D gaming environment? More specifically, anything to do with working magnetics into existing physics engines would be great. Thanks.

Have fun :).

##### Share on other sites
i have done some magnetic tests with a rigid body physics engine, and found that by using a simplified formula for the magnetic force between poles worked very well.

F = (M1 * M2) / ( u * r^2 )

M = pole strength (weber)
u = permeability of medium (tesla meter per ampre)
r = distance between poles.

i found on the net that the magnetic constant u is a very, very small number, so I substituted 0.001 for my simulation. this, in conjunction with vales for M from 1.0 to 50.0 provided very cool results for my magnet system.

I used this formula to calculate the force between 2 magnetic poles (attractive if poles are opposite polarity / repellant if same polarity).

1. 1
Rutin
69
2. 2
3. 3
4. 4
5. 5

• 21
• 10
• 33
• 20
• 9
• ### Forum Statistics

• Total Topics
633421
• Total Posts
3011797
• ### Who's Online (See full list)

There are no registered users currently online

×

## Important Information

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!