Is it possible to limit the size of a Drawable2D so it does fit inside of the screen bounds? Say I have an image or video on top of a tracked target and the user moves the camera very close. I would want the image or video to shrink. Is that possible?
Did you try to follow the directions provided on the forum post above? You can also adjust the size of a Drawable by changing the scale property.
Thanks Eva
Wikitude Support
said
almost 7 years ago
Hi Thorsten,
This should be possible by applying the option distanceToTarget. You can find mode details on this documentation section and information about this option on the Javascript API Reference here.
Thorsten Schemm
Is it possible to limit the size of a Drawable2D so it does fit inside of the screen bounds? Say I have an image or video on top of a tracked target and the user moves the camera very close. I would want the image or video to shrink. Is that possible?
1 person has this problem