Logic Gadgets: Tag

 

Icon
Name of gadget Tag
Section Sensors & Input
Number of Tweak pages 1
Author LadylexUK, QuietlyWrong
Last updated 23 May 2019 [EA v1.02]

Description

This gadget provides a target. It can be attached to an object or character or stand on its own. The name of the tag is important as you refer to this name in gadgets that look for tags wirelessly such as the follower gadget or trigger zone.

Example Tutorial (from Media Molecule)

  1. Stamp a cube.
  2. Grab a follower and use surface snap to attach it to the cube.
  3. Stamp a tag somewhere in your level.
  4. Name the tag in the tweak menu (call it “home”)
  5. Open the follower tweak menu and enter “home” under tag name.
  6. On second page of follower tweak menu change min distance to 2m
  7. Use start time.
  8. Grab the tag and move it around your level. The cube should follow you.

Tweak Menus

 


Image: Beta. Confirmed same in v1.02
  1. Name of Tag (change here)
  2. Tag Detected
    2b. Tag Detected output
  3. Scene space transform
    3b. Scene space transform  output
  4. Power

 

  1. Name of tag
    Although it is always a good idea to name your gadgets, the tag name is especially important as you will use this as the unique identifier for this gadget and will be typing this into other gadgets. Be careful with spelling and use of capitalisation and spaces, and make sure it is unique from other tags that you do not want to have the same properties. You can have many tags of the same name, using power to turn on and off (to create a path for example).
  2. Tag Detected
    This provides a continuous signal between 0 and 1 (0 is not detected, 1 if detected, and a number between 0 and 1 if falloff detection is used).
  3. Scene Space Transform
    Outputs a fat wire containing information that can be split into position, orientation and scale.
    Details of position can be obtained by putting the Scene Space transform output through a splitter and then putting the translation output through another splitter to get A (x axis), B (y axis) and C (z axis) ( recommend you use the number to three decimal places for accuracy).
    Orientation can be determined by putting the Scene Space transform output through a splitter and then putting the rotation output through another splitter to get X, Y and Z rotation.
    Scale refers to the size of the tag and not any object it is attached to.
  4. Power
    Turn this gadget on/off here.

The Tag’s Reference Point (by QuietlyWrong)

When you stamp down a tag and select it, you’ll see a move handle appear right next to it. By default, this is just above the gadget (or the microchip that it’s snapped to). You can grab this with to drag it anywhere in your scene, or with to rotate it to any angle. In this way, you can separate your tag gadget from the reference point that it applies to.

For example, if you place a tag in a basic puppet’s microchip, the tag’s point of reference will be just in front of the basic puppet’s feet. If you want sensors to detect, say, the centre of the puppet’s torso, you could drag the reference point’s move handle to that location instead.

You’ll note that the reference point can be rotated as well as relocated. This will affect the output of the Scene Space Transform gizmo.

If the move handle ends up a long way from the tag and you can’t find it, just select the tag or open its tweak menu and a dashed line will link the gadget to the tag’s reference point. Take care when the reference point is off-screen and you are moving and rotating the gadget (or anything the gadget is fixed to) because you will move that point of reference at the same time – it remains fixed to the gadget, not to its position in space.

If, inversely, you can see the reference point you can hover the imp tip over it and “quick zoom” to the corresponding tag gadget with .

Lex Tips

This is a pretty powerful gadget and can be used to create paths for NPCs to follow, directions for characters to turn in, positions for objects to move to as well as labelling objects with unique identifiers.

The usefulness of this gadget comes from the number of other gadgets that work with it as follows:

  • Trigger Zone
  • Laser Scope
  • Follower
  • Look At Rotator
  • Teleporter
  • Puppets (turning/following behaviour)

Useful Tutorials

Beginners Guide to Tags and Trigger Zones

Version Updates

v.1.02 Added new information to the scene space transform tweak. Confirmed menus same as in Beta.

One thought on “Logic Gadgets: Tag

Add yours

  1. I can confirm that the the position, orientation, and scale values can be further split into their individual components. Position splits into x, y, z more or less as you would expect, though IIRC they’re relative to the orientation of a little gizmo that connects to the tag, rather than being true global coordinates. (So you could say, swap x and y if you wanted to.)

    The position of the gizmo decides the tag’s center point. So if you attach a tag to a puppet and set the gizmo inside the puppet’s head, and move the puppet so it’s head is at the global origin point (good luck finding it, lol), then the position given by the tag will be roughly (0, 0, 0). I think.

    Liked by 1 person

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: