Can anyone tell me what tutor to watch (idk) to make this mechanic?

I don’t need ready-made blueprints, but can anyone suggest some tutorials I can watch to at least understand how to do this? Here’s the concept of my game: "The player is attracted to magnets if they have different polarities, and repelled if they have the same polarity:

Hold left mouse button — the player’s avatar changes polarity to north
Hold right mouse button — the player’s avatar changes polarity to south." I’d say I need a mechanic where coins are attracted to the player, but the other way around, and only when a button is pressed.

i can give you a starting point

have an Polarity Enum on the Character (Off,North,South)

on the Magnets OnTick → GetPlayerCharacter → maybe RunDistanceCheck → GetPolartiy → ApplyForce using GetDirectionToCharacter x SelectPolarity (0, 1, -1)

see how you go with that and we can clean it up if its on track

(post deleted by author)