Grab/drop objects in UPBGE & BGE – Blend file by Mike Pan
This is a very old file I got from the Blender Artist forums (about five years ago, i forgot the forum link, sorry!) but still usable in the current versions of Blender, and even in the UPBGE fork (if you don’t know what UPBGE is, go here) so don’t worry about compatibility problems between both of them.
So, what does this blend file do? exactly what the title says, you can grab objects with the mouse, or maybe a better explanation is, you can grab objects colliding another object parented to the camera, so in this way you can only grab objects at a centain distance.
This is nice, both to learn how to do it, or just to implement in your game projects. Grab the blend file here.