var location = new AR.RelativeLocation(null, 30,20,10); // altitude set 10
overlay = new AR.ImageDrawable(new AR.ImageResource(?test_rectangle.png?,1, {offsetX: 0,offsetY: 0,scale:scale,rotation:rotation});
obj = new AR.GeoObject(location,{
drawables: {cam: }
});
in this case test_rectangle.png appear as trapezoid like it tilted.
(see tiltedPic.png)
If I don't set alltitude
var location = new AR.RelativeLocation(null, 30,10,0);// altitude set 0
It shows as rectangle.
(see verticalPic.png)
Is it possible to set altitude and do not make png file tilted??
A
Andreas Fötschl
said
almost 8 years ago
This is expected behaviour... You are placing the object 10 meters above user level. Geo-Augmentations are always facing towards the user. This behavior is not customizable yet, unfortunately. You can defina a proper rotate.roll / rotate.tilt attribute to workaround this.
d
daichi hayakawa
said
over 7 years ago
Hello Andreas Huser
Thanks for your reply.
I calculate the angle of object with distance and height by trigonometric function.
daichi hayakawa