How would I create magnetism?

For a college project I decided (before being given a chance to know what Unity is even capable of) to create a game in which the player is magnetic, there is no downwards gravity, and you get around by changing your polarity to attract and repel yourself to and from objects in the level. We’re using Bolt and we’re not being taught C# for some reason, plus there are only 5 weeks left to get this done. Here’s how I think this should work:

Every object has a polarity variable, that being something like 0 for neutral, 1 for North and 2 for South. Strength doesn’t really matter. Objects with magnetism set to 1 attract objects with magnetism set to 2 and vice versa, and objects with magnetism set to 2 repel objects with the same setting, same with values of 1. The player will probably be the only thing that has to move, and the character will be able to flip polarities (including to neutral) in order to move around. That is the basic outline of the physics engine, but I have no idea as to how to make it actually work in 3-Dimensional space. I’d greatly appreciate any help.

Hi,
Have you tried to search for “unity magnetic component”?
There are some example codes out there that might give you some ideas.