Viro3DObject always moves with the phone, not fixed to one position
stoneWeb opened this issue · 1 comments
stoneWeb commented
Used internally by ViroARScene, it always moves with the phone position.
But ViroBox work is very well.
Who can help me!!!!
HassanAfnan commented
{}}
>
{/* 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>