Logic Gadgets: Impact Sensor

 

Icon
Name of gadget Impact Sensor
Section Sensors & Input
Number of Tweak pages 2
Author LadylexUK, QuietlyWrong
Last updated 11 June 2019 [EA v1.03]

Description

This gadget can be used to output a signal whenever anything is in contact with another object and is mainly used for “collision detection”, a key component of many video games, whether it’s for feet against footballs or bullets against bug-eyed monsters. It can output a signal for different types of impact (such as bumps, scrapes, rolls, touch). It is good for triggering sound effects, such as sword hits. Applied with a health modifier gadget it can quickly make that sword dangerous.

Example Tutorial (from Media Molecule)

  1. Stamp a cube about a metre above the floor (so it is not touching anything)
  2. Tweak the cube menu, on physical properties page set to moveable
  3. Open up sound mode in the main menu.
  4. Choose an impact sound effect and stamp it into your scene.
  5. Tweak the sound effect to play once under slice playback mode.
  6. Snap an impact sensor to the cube.
  7. Connect the output port of bumps to the power port of the sound effect.
  8. Use start time.
  9. The shape will fall and make a sound when it hits the floor.

Tweak Menus

Click on the arrows to view

Tweak Menu 1: Properties & I/O

[screenshot from beta; v1.03 identical]

  1. Tweak Menu Page 1: Properties & I/O
  2. Sense Impacts
    2a. Input
  3. Sensitivity
    3a. Input
    3b. Output
  4. Touching
    4b. Output
  5. Bumps
    5b. Output
  6. Rolls
    6b. Output
  7. Scrapes
    7b. Output
  8. Power
  1. Menu page indicator
  2. Sense Impacts
    Wire the input to the object you want this sensor to apply to. If you snap this gadget directly on to an object or a microchip on an object, the gadget will automatically default to sensing impacts on that object
  3. Sensitivity
    Here you can change the sensitivity of the gadget to impacts, which will affect the values from the outputs below
  4. Touching
    This will output a continuous signal for as long as the target object is touching any element in the scene with the correct label(s)
  5. Bumps
    This will output a signal when the target object first comes into contact with any element in the scene with the correct label(s)
  6. Rolls
    This will output a continuous signal for as long as the target object is rolling against any element in the scene with the correct label(s)
  7. Scrapes
    This will output a continuous signal for as long as the target object is sliding against any element in the scene with the correct label(s)
  8. Power
    This turns the gadget on/off
Tweak Menu 2: Labels
Impact Sensor 2
  1.  Tweak Menu Page 2: Labels
  2. Match Mode
  3. Detect Labels
    3a. Inputs
  4. Power
  1. Menu page indicator
  2. Match Mode
    This is so you can filter what the impact sensor can detect by choosing a label

    • Any (find objects that match any of the below labels, can match any or all)
    • All (find objects that have all the below labels (must match all) (unlabelled is deselected)
  3. Detect Labels
    These labels can be set in each object, element or group or shape and can be used to determine actions that apply to only a certain sort of object. For example you may wish to only impact with scenery that is not the floor, so you would label all elements in your scene that are not floor as scenery.

    • Friend
    • Foe
    • Scenery
    • Object
    • Machine
    • Weapon
    • Missile
    • Target
    • Unlabelled
  4. Power
    This turns the gadget on/off

Lex Tips

Useful Tutorials

 

Version Updates

v1.03 – cosmetic change to a tweak tab only

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: