Discussions

Ask a Question
Back to All

Unble to detect vertical ARPlane

I have tried below code, it is working fine for Horizontal, but not working for Vertical Plane:

 <ViroARScene onTrackingUpdated={onInitialized}
    anchorDetectionTypes={['PlanesHorizontal', 'PlanesVertical']}>
      
      <ViroAmbientLight color={"#aaaaaa"} />
      <ViroARPlaneSelector
          minHeight={0.1}
          minWidth={0.1}
          alignment="Vertical"
          onPlaneSelected={this._onPlaneSelected}>
        <ViroNode position={[0, -.5, 0]} dragType="FixedToWorld" onDrag={() => { }} >

          {/* Spotlight to cast light on the object and a shadow on the surface, see
              the Viro documentation for more info on lights & shadows */}
          <ViroSpotLight
            innerAngle={5}
            outerAngle={45}
            direction={[0, -1, -.2]}
            position={[0, 3, 0]}
            color="#ffffff"
            castsShadow={true}
            influenceBitMask={2}
            shadowMapSize={2048}
            shadowNearZ={2}
            shadowFarZ={5}
            shadowOpacity={.7} />
          <Viro3DObject
            source={require('./emoji_smile.vrx')}
            position={[0, .1, 0]}
            scale={[.2, .2, .2]}
            type="VRX"
            lightReceivingBitMask={3}
            shadowCastingBitMask={2}
            transformBehaviors={['billboardY']}
            resources={[require('./emoji_smile_diffuse.png'),
            require('./emoji_smile_specular.png'),
            require('./emoji_smile_normal.png')]} />
          <ViroQuad
            rotation={[-90, 0, 0]}
            width={.5} height={.5}
            arShadowReceiver={true}
            lightReceivingBitMask={2} />
        </ViroNode>
      </ViroARPlaneSelector>
      
    </ViroARScene>

Can anyone provide solution for this?