Saltar al contenido principal

Búsqueda

How do I get the distance to a tag/player?

  • Mm 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

  • RyoShiin

    I was already using a tag but still got an error.
    I'll try to quantify this error as soon as I can.


    But your solution using transform is just genius. I didn't know that the transform of the object was exposed.

    I'll try that.

    Thank you.

Iniciar sesión para dejar un comentario.