# Magnetic physics

This topic is 4464 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).

• 23
• 10
• 19
• 15
• 14