79111539

Date: 2024-10-21 19:48:37
Score: 2.5
Natty:
Report link

Could you resolve it already? I'm working on the same topic. My workaround is to place an invisible around the object to get a raycaster:

<Splat renderOrder={renderOrder} src={'./path/to/my.splat'} />
<RigidBody type="fixed">
  <mesh
    renderOrder={renderOrder+1}
    ref={meshRef}
    onClick={onMachineClick}
    onPointerOver={handlePointerOver}
    onPointerOut={handlePointerOut}
    name="my_splat"
    position={[0, 0, 0]}
    material={transparentMaterial}>
    <boxGeometry args={[3, 2, 1.5]} />
  </mesh>
  {hovered && (
    <Html
      position={[0.5, 0.5, 0]}
      center
      distanceFactor={8}
      style={{ pointerEvents: 'none' }}>
      <Label title={'Lasercutter'} content={'Click me!'} />
    </Html>
  )}
</RigidBody>

enter image description here

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve it already?
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: murcoder