viro icon indicating copy to clipboard operation
viro copied to clipboard

Viro3DObject always moves with the phone, not fixed to one position

Open stoneWeb opened this issue 1 year ago • 1 comments

Used internally by ViroARScene, it always moves with the phone position. But ViroBox work is very well.

Who can help me!!!!

stoneWeb avatar Jul 02 '23 10:07 stoneWeb

{}} > {/* Spotlight to cast light on the object and a shadow on the surface, see the Viro documentation for more info on lights & shadows */}

    <Viro3DObject
      source={require("./assets/chair/chair.obj")}
      position={[0.5, 0.2, 0]}
      scale={currentScale}
      type="OBJ"
      lightReceivingBitMask={3}
      shadowCastingBitMask={2}
      transformBehaviors={["billboardY"]}
      onDrag={moveObject}
      onPinch={onPinch}
    />
    <ViroQuad
      rotation={[-90, 0, 0]}
      width={0.5}
      height={0.5}
      arShadowReceiver={true}
      lightReceivingBitMask={4}
    />
  </ViroNode>
</ViroARScene>

HassanAfnan avatar May 16 '24 12:05 HassanAfnan