My idea is to use two components:
- one for objects which are grabbable,
- and another to grab which measure the distance between the pawn (with grab component) and the first object in front with the “grabbable” component. We can make this operation only when we interact with a keyboard key to avoid to compute a ray cast at each frame.