Log in or register to post comments

Pin flag to target's corner

May 4, 2018 - 7:34am #1

Hello. I'm trying to pin a flag to a QR target. The flag has cloth physics and works great in Unity. The video below show what I'm looking for.

https://youtu.be/TZTT1WKC4C0?t=40s

I'm new to Vuforia so I will start with very general questions:

- Is there a way to follow the corners of the target? In other words, assign it to a variable where I can then pin the flag from.

- Is it easier to use 2 targets to hold the flag hanging from?

Pin flag to target's corner

May 4, 2018 - 2:46pm #2

Hello sEstay,

You can get the position of your target and then, using the size you defined for it, determine where the corner is to pin your flag. If you are using Unity, you can get the position of your target by access the Transform of the target's Game Object.

Thanks,

Vuforia Support

Log in or register to post comments