Transelate the position of a model in AR mode #4302
-
Heho, So I want to be able to reposition my model in AR mode in relation to the anchor on the ground. More specificly I need the model to go vertically up and vertically down with some sort of control over it (touch interaction might be to much as rotating, scaling and positioning is already bound to those) So I want to have a slider that makes my model float higher or lower depending on the sliders value. Is that possible with modle viewer? I sadly can't find a lot of info on that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It is possible (or atleast was) but only in WebXR mode, but on iOS you already have that logic built in, just drag with two fingers up/down and the model will change position vertically. For WebXR I used this code (its from some old project so im not sure if it works, but maybe it will point you in some direction): Good luck :) ` var ts,tp;
|
Beta Was this translation helpful? Give feedback.
That's well outside of our public API. We have been considering some new APIs for this kind of thing though. Meanwhile, another option would be to export the file with an animation that moves it up, then select the height with
currentTime
.