Magnetic force between two magnets

Hey guys,

I have this idea I want to play with that involves a floating ball being pulled by two magnets; one on the right side, and one on the left. When the button that activates the right magnet is pressed, the ball gets pulled to the right side of the screen, and the same with the left magnet. And when neither magnet is activated, it goes back to the center of the screen. Is there anyway I can apply that in Blueprint? Or would I need to write some code for that sort of specific manipulation? Any help would be appreciated.

Thanks guys

You should be able to do it by using physics (Add impulse) and blueprints.

And I can just add impulse on the magnet object?