|Name of gadget||Grab sensor|
|Section||Sensors & Input|
|Number of Tweak pages||1|
|Last updated||20 Apr 2019 [EA]|
This gadget allows you to detect when the imp interacts with objects in a scene. The object’s physical properties determine whether or not an item can be moved by an imp, but this gadget allows you to read that “grabbing” in order to turn drive other logic, such as turning on a light. This gadget also allows “hover” effects that output a signal when the imp tip is merely resting on the object.
Example Tutorial (from Media Molecule)
- Stamp a cube
- Add a grab sensor and surface snap it to the cube.
- In the cube tweak menu go to physical properties and select grab under imp interaction
- In outer properties push up the glow slider to 50%
- Connect the grabbed output on the grab sensor to the glow slider input in your cube.
- Switch to test mode
- Grab the shape. It will glow.
- Try the same but with the hover output instead of grabbed.
- Number of imps required
You can set how many imps need to be grabbing an object to trigger the gadget, for multiplayer purposes. You can choose “ALL” to require all active players, or select a number from 1 to 4
- Sense Grab
Connect a wire from this input to the object that you want to test being grabbed. Alternatively, if you snap the gadget to an object, or to a microchip snapped on the object, that object defaults to being the one tested
This outputs a continuous signal while the object is question is being grabbed by the required number of players
Rather than having to grab an object, this output provides a signal when the imp’s tip is hovering over the object. You might use this for example to highlight the object that the player is looking at before they commit to grabbing it
- Imp Stretch
When an object is being grabbed, this output provides a variable signal determined by the amount that the imp tip is being stretched at the time, which depends on how far the player is holding the imp away from the point being grabbed
This is where you can turn the gadget on/off