drei icon indicating copy to clipboard operation
drei copied to clipboard

Bvh raycast: Cannot read properties of undefined (reading 'count')

Open hichemfantar opened this issue 5 months ago • 0 comments

Problem description:

Enabling Bvh on my scene and holding a ref to my ecctrl controlled character causes an error. related to https://github.com/pmndrs/ecctrl/issues/97

Relevant code:

https://github.com/pmndrs/ecctrl/tree/main/example

<Canvas>
  <Bvh firstHitOnly>
    <Scene />
  </Bvh>
</Canvas>

Suggested solution:

i'm thinking maybe it's because drei is using an older version of three-mesh-bvh

hichemfantar avatar Sep 12 '24 11:09 hichemfantar