VRHelper - which controller selected a mesh

VRHelper.onNewMeshSelected.add(function(mesh) {
selectedMesh = mesh;
});

There is no way of determine which controller selected a mesh

Bugs

Select mesh with right controller
Pull trigger on left controller

Expected result:
Mesh will not be attached to right controller

  • Current result:
    Mesh is attached to right controller

Well yeah that kind of missing :smiley:

next nightly will add a new observable:

    /**
     * Observable raised when a new mesh is selected based on meshSelectionPredicate.
     * This observable will provide the mesh and the controller used to select the mesh
     */
    public onMeshSelectedWithController = new Observable<{mesh: AbstractMesh, controller: WebVRController}>();

Cool!

Exactly what I was thinking.