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)
- Stamp a cube about a metre above the floor (so it is not touching anything)
- Tweak the cube menu, on physical properties page set to moveable
- Open up sound mode in the main menu.
- Choose an impact sound effect and stamp it into your scene.
- Tweak the sound effect to play once under slice playback mode.
- Snap an impact sensor to the cube.
- Connect the output port of bumps to the power port of the sound effect.
- Use start time.
- 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] |
|
- Menu page indicator
- 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 - Sensitivity
Here you can change the sensitivity of the gadget to impacts, which will affect the values from the outputs below - 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) - 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) - 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) - 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) - Power
This turns the gadget on/off
Tweak Menu 2: Labels
![]() |
|
- Menu page indicator
- 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)
- 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
- 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