Skip to content

Adding laser-controles does not work with Vimeo component #27

@DimitriBin

Description

@DimitriBin

Hi,
When in VR Mode in the VR headset (oculus quest), the laser controls do not work when using the vimeo component.
Does anyone know why this is? or have a workaround ?

Working code example below without vimeo, lasers work fine:

<a-scene >
    <a-videosphere ></a-videosphere>
  <a-box color="tomato" depth="2" height="4" width="0.5" position="0 2.4 -8"></a-box>
  <a-entity  laser-controls="hand: left"  raycaster="objects: .collidable" line="color: #26608c"></a-entity>
  <a-entity laser-controls="hand: right" raycaster="objects: .collidable" line="color: #26608c"></a-entity>
</a-scene>

NOT working code example:

<a-scene >
    <a-videosphere vimeo="id: XXXXXXXXXX; autoplay: true;" ></a-videosphere>
  <a-box color="tomato" depth="2" height="4" width="0.5" position="0 2.4 -8"></a-box>
  <a-entity  laser-controls="hand: left"  raycaster="objects: .collidable" line="color: #26608c"></a-entity>
  <a-entity laser-controls="hand: right" raycaster="objects: .collidable" line="color: #26608c"></a-entity>
</a-scene>

Thanks a lot

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