Response from QA Team doesnt work - distance between tags
They posted:
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
Tried it.
1. The first split info is called Translation not Position
2. The number it provides is not the distance between the two tags - when I have the tags together it says 6 I walk away to east it says 3, to the south is says 7 - If i walk around I can get number 0 to 7, so it is is not showing distance it is providing some sort of compass direction.
So how do we calculate distance between tags.
-
I think the issue here is that you're ending up with the vector between the two tags, rather than the distance between them. The position is three values describing the difference, in coordinates, on the X, Y and Z axes respectively. You need to convert that to a single value, the distance, which is the magnitude of the vector.
Search the dreamiverse for 'vector length', which I think was built by phort, and wire your current output into its input. The output of the vector length chip should then be the distance you are looking for.
댓글을 남기려면 로그인하세요.