viro
viro copied to clipboard
Viro3DObject always moves with the phone, not fixed to one position
Used internally by ViroARScene, it always moves with the phone position. But ViroBox work is very well.
Who can help me!!!!
<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>