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

positioning is different depending on OS #210

Open
jtsiaperas opened this issue Dec 7, 2022 · 0 comments
Open

positioning is different depending on OS #210

jtsiaperas opened this issue Dec 7, 2022 · 0 comments

Comments

@jtsiaperas
Copy link

The positioning of ar objects in 8th wall seems to be different whether the device is android or any other os. See code below for how the positioning is set. The values are for android currently. for ios the y values are 0.2, 0.35, and 0.85. the z values are all setZ.

frameObj.position.set(detail.position.x, detail.position.y + 0.2, detail.position.z - setZ)
frameObj.quaternion.copy(detail.rotation)
frameObj.scale.set(detail.scale * setScale, detail.scale * setScale, detail.scale * setScale)

  // video
  // videoObj.position.set(detail.position.x, detail.position.y + 0.35, detail.position.z - (setZ + 0.25))
  videoObj.position.set(detail.position.x, detail.position.y + 0.2, detail.position.z - (setZ-0.1))
  videoObj.quaternion.copy(detail.rotation)
  videoObj.scale.set(detail.scale * setScale, detail.scale * setScale, detail.scale * setScale)

  // textbox
  textboxObj.position.set(detail.position.x, detail.position.y + 0.7, detail.position.z - (setZ-0.2))
  textboxObj.quaternion.copy(detail.rotation)
  textboxObj.scale.set(detail.scale * setScale, detail.scale * setScale, detail.scale * setScale)
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