How to measure distance and calculate position

From the Beta Forum

Note from Lex: It appears they have altered the data that the split gives you, and position is no longer one of those options, instead it is Translation (but the description in the tip says Position). However this, seems to work. Add a splitter to the scene space transform of each of the tags, take the translation figures and wire them to a calc set to minus and wire the result to a number gadget.

Q: How do I get the distance to a tag/player? It seems like there is no tool to measure a distance? (between a sensor and a tag for example)The only thing that I found to evaluate a distance is using a trigger zone with :

-a sphere shape
-0 for the size of the sphere
-X for the fall off (diameter of the sphere)

Then, if the tag is inside the sphere, the distance should be :
X * 0.5 * (1 – “Output of the trigger”)

But I only manage to get approximate measures (even with grid on). Is this intended? Did I miss something?

  QA Team

With the trigger zone setup you are using which is one way to get a distance measurement you may be getting less accurate measurements if detecting a sculpt because it measures the point of intersection with the zone not a consistent fixed point on the sculpture e.g. its center

If you want more accurate measurements with this method the instead of detecting the sculpt use a Tag.

The other method of measuring is with two Tags. One on each object you want the distance between. Wire or transmit the ‘scene space transform’ output from each tag to a Calculator gadget (Palette > components > logic and processing) set to minus 1 one from the other. Wire the Calculator gadget output to a splitter Gadget (also in logic and processing). This will split the Transform into Position, Orientation and Scale. Take the Position output and that should now be giving you a distance value between the tags

Comments and Feedback

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

You are commenting using your 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.

Create a free website or blog at

Up ↑

%d bloggers like this: