Object grab mecanism

Having looked at some of Unreal’s code before I’d say step one would be to use a trace coming out of the player pawn. It would be functional enough to have it poke in front of the player in a fixed fashion, looking if something is there.

Then, if a grab-able physics object is there, until it is “let go”, change it’s position in the world each frame to something offset from the player’s pawn position.

Privacy & Terms