Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.
This repository was archived by the owner on May 18, 2026. It is now read-only.

positioning is different depending on OS #210

Description

@jtsiaperas

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions