Gravity Gun

Image 

A demonstration of the physics engine, you can repel and attract objects by left or right clicking on them.

Download the Gravity Gun Demonstration.

Loosely based on the Zero-Point Energy Field Manipulator (Gravity Gun) from Half-Life 2, the Gravity Gun is implemented in a Python script. When a mouse button is pressed, it performs a ray cast to test for collision with an objects physical shape. If an object is detected, a force is applied to its body, which either attracts or repels the object.
Unlike the Half-Life 2 Gravity Gun, this script doesn't allow you to pick up and hold objects.
The script should be loadable into any Space, however due to how mouse mapping is currently handled, the second mouse button (repel) may not work in every Space.