superframe icon indicating copy to clipboard operation
superframe copied to clipboard

orbit controls dont update after camera position position

Open Hulkmaster opened this issue 7 years ago • 1 comments

After i change camera position orbit controls stop targeting target and instead of rotating arounf object - they start to rotate around camera position

Hulkmaster avatar Dec 18 '18 14:12 Hulkmaster

okay, my bad (i think should also be added to documentation)

if you want to change camera position, you should change position of

element.getObject3D('camera') not element.object3D

because element.object3D is just a group, which contains camera (in case you're using a-entity)

Hulkmaster avatar Dec 18 '18 14:12 Hulkmaster