Skip to content

position inaccuracy with drei Html component #796

Answered by drcmda
bonjat asked this question in Q&A
Discussion options

You must be logged in to vote

turns out a camera.updateMatrixWorld() was missing. i pushed a fix.

i reduced your sandbox down to what was causing the problem, looks good to me now: https://codesandbox.io/s/html-component-odd-behavior-forked-e7qme?file=/src/App.js

ps. no need to implement your own orbitcontrols, drei has you covered. and you dont need to put three.vector3's into that group, it takes regular arrays, too.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@bonjat
Comment options

Comment options

You must be logged in to vote
1 reply
@bonjat
Comment options

Answer selected by bonjat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants