Add magnetic force to a sphere

Hello everyone!

I’m writing a script that runs Isaac-sim where I have 4 spheres positioned in a row a s such:

I want to turn spheres into magnets so they will attract each other connect once the simulation is running.
Are there any built-in features for that? What is the best way to implement magnetic force in Isaac-sim?

Thank you!

1 Like

Hi! Our robots are based on magnets and I’d like to make a Digi Twin and I am interesting if there is magnetic simulation in Omniverse? Or how to implement magnetic forces?

Can anyone please respond to this?

Hi - Sorry for the delay in the response. Let us know if you still having this issue with the latest Isaac Sim 2022.2.1 release.

Hi. I would like to learn how I can work with magnets in Isaac Sim to make an mfl sensor simulation.

Hi OM_Metab,

Yes, an extension called omni.physx.forcefields can be used to apply magnetic forces to each of the spheres. Here are the steps used to make the spheres magnetic. I’ve also attached a USDA file and movie that you can use to see how I set it up.

  1. Autoload the extension: Under Windows > Extensions, search for “force” and click the “Autoload” checkbox on the omni.physx.forcefields extension.

  2. Apply a spherical magnetic field to each sphere: In the Stage window, select each of your spheres and right click Add > Physics > Spherical Force Field.

  3. Set the strength of the magnetic field: First click on the Property tab. Select each of your spheres and scroll down until you find the newly added Spherical Force Field window. I used a strength of -5,000,000 on the Inverse Square setting. You may need to experiment with this value to get the behavior you are looking for.

Uploading: MagneticSpheres.m4v…

MagneticSpheres.usda (14.8 KB)

The omni.physx.forcefields extension simply computes forces as a function of distance. It does not simulate a magnetic field and it’s perturbations around other materials, so it cannot simulate an mfl sensor. I am not aware of any other magnetic field simulation in Omniverse at this time.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.