Logic Gadgets: Grab Sensor

 

Icon
Name of gadget Grab sensor
Section Sensors & Input
Number of Tweak pages 1
Author LadylexUK, QuietlyWrong
Last updated 13 March 2020 [v2.06]

Description

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)

  1. Stamp a cube
  2. Add a grab sensor and surface snap it to the cube.
  3. In the cube tweak menu go to physical properties and select grab under imp interaction
  4. In outer properties push up the glow slider to 50%
  5. Connect the grabbed output on the grab sensor to the glow slider input in your cube.
  6. Switch to test mode
  7. Grab the shape. It will glow.
  8. Try the same but with the hover output instead of grabbed.

Tweak Menus


Screenshot from Early Access; confirmed identical in v2.06
  1. No. Players Required
    1a. Numeric input (0 – 4)
    1b. Numeric output (0 – 4)
  2. Sense Grab
    2a. Input wire from element(s)
  3. Grabbed
    3b. Boolean output (0, 1) with player info
  4. Hovered
    4b. Boolean output (0, 1) with player info
  5. Imp Stretch
    5b. Signal output (0 – 1) with player info
  6. Power
  1. 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. For the purposes of input/output wires, “ALL” is represented by the value 0.
  2. Sense Grab
    Connect a wire from this input to the object(s) 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.
  3. Grabbed
    This outputs a continuous signal while the object is question is being grabbed by the required number of players. Player information can be split out to determine which player is doing the grabbing.
  4. Hovered
    Rather than having to grab an object, this output provides a signal when the imp’s tip is hovering over the object. Note that actually grabbing the object turns this signal off, even though it is still arguably hovering over the object. As with the Grabbed output, there must be enough imps hovering over the object as specified in “Number of imps required”. You might use this for example to highlight the object that the player is looking at before they commit to grabbing it.
  5. Imp Stretch
    When an object is being grabbed, this output provides a variable signal between 0 and 1, 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. Note that it is possible for this value to read 0 even when the imp is successfully grabbing the object, especially when using the stick-based control scheme. Again, this will only output a signal when the requisite number of imps is grabbing the object.
  6. Power
    This is where you can turn the gadget on/off

Lex Tips

Useful Tutorials

Beginners Guide to the Grab Sensor

Comments and Feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Up ↑

%d bloggers like this: