Start a new topic

Drawable2D and screen width

 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

Same problem here. Has anyone solved this?

Hello Lance,

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

 

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.

Thanks
Eva

 

Login or Signup to post a comment