You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using look-at to on my camera to track an element moving through my scene and I'm trying to figure out how (or if it is possible at all) to programmatically remove the look-at component at a given point in time (once the element has left the scene, for instance)
el.removeAttribute("look-at") causes the camera to snap back to rotation="0 0 0".
I've tried el.setAttribute("look-at", "") which does not appear to break the "connection" between the camera and the element.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered:
Hi there,
I'm using look-at to on my camera to track an element moving through my scene and I'm trying to figure out how (or if it is possible at all) to programmatically remove the look-at component at a given point in time (once the element has left the scene, for instance)
el.removeAttribute("look-at")
causes the camera to snap back to rotation="0 0 0".I've tried
el.setAttribute("look-at", "")
which does not appear to break the "connection" between the camera and the element.Any help would be appreciated!
The text was updated successfully, but these errors were encountered: