Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARKit-camera.project_ray_normal return wrong value #40

Open
waci11 opened this issue Jan 14, 2023 · 0 comments
Open

ARKit-camera.project_ray_normal return wrong value #40

waci11 opened this issue Jan 14, 2023 · 0 comments

Comments

@waci11
Copy link

waci11 commented Jan 14, 2023

Stretch Mode = Viewport
Stretch Aspect = Expand
the result is offset to the center of the screen
For example:
The size of the viewport is 1440x1920 .
When I click on (1380, 1855). Objects at (1075,1410) is hit by the ray .
When I click on (1075,1410), Objects at (905,1150) is hit by the ray .

By the way , the 3d object that is the child of the camera is not pinned to the camera ,the 3d object will offset the position when camera move .

And the control node can not be "Full Rect"
For example:
If the screen size is 100x100 and the viewport size is 50x50, the ui will only be displayed within the quarter of the screen which is at the upper left corner . can not press the ui button because the click of control node is offset too .

At last , I am not sure if this is a bug , but it took me a lot of time to make the camera move .
I need to set ARVROrigin.world_scale to 100 to match the camera position with IOS device(The device moves 1 meter, the camera moves 100 units)

@waci11 waci11 closed this as completed Jan 14, 2023
@waci11 waci11 changed the title ARKit-camera.project_ray_normal return wrong vaule ARKit-camera.project_ray_normal return wrong value Jan 14, 2023
@waci11 waci11 reopened this Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant