Get player position #94
-
Thanks for adding the discussions section! Is there a way to access the player position? (I'm wanting to make interactive elements for which I need this). I've tried adding a ref to the gltf within the Ecctrl component (and to the ecctrl component itself), but ref.current.position seems to stay fixed at 0,0,0 I cant see anything in the hooks for getting this. The only way I can think of at the moment, is to get the camera position, but that changes if the user 'zooms out' using the scrollwheel! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Add the ref to Ecctrl, and the position is: |
Beta Was this translation helpful? Give feedback.
#48 This is for better performance, not to prevent falling.
Here are a few other things you could try: