Skip to content

How to optimize model scaling and position using ARCanvas? #160

Answered by edwinwebb
sljavi asked this question in Q&A
Discussion options

You must be logged in to vote

You can write an useEffect which takes isPresenting from the useXR() hook and then setup/optimize your scene between the sessions.

Finger control is more difficult. You will need to roll your own handlers for the touch events, ray casting as well as hit-tests.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sljavi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question A general question or query about WebXR or react-xr
2 participants
Converted from issue

This discussion was converted from issue #152 on July 18, 2022 12:41.