Jump to content
  • Advertisement
Sign in to follow this  
niblick

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.

If you intended to correct an error in the post then please contact us.

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.

Share this post


Link to post
Share on other sites
Advertisement
I've found this, dunno if it'll help you much..: http://www.falstad.com/vector3dm/.

Just google for "magnetism simulation"!

Have fun :).

Share this post


Link to post
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).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

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!