Open arek-e opened 1 year ago
Hey! Have you tried move handlers to the parent mesh?
<mesh
onPointerOver={() => hover(true)}
onPointerOut={() => hover(false)}
>
<Addition
position={position}
ref={addRef}
>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color="orange" />
</Addition>
</mesh>
Hello! Im trying to implement OnPointerOver like the basic demo of React Three Fiber. Im not super experienced with the CSG part of r3f.
Currently im doing this but with no success, this is a add component that is nested in the geometry.
I've tried placing it on the mesh aswell but with no success. Does anyone have any pointers on what i can do next?