Open s0-david opened 4 months ago
when i move around or change the pointer direction, the textures on InstancedRigidBodies vanish. it works fine with instances from drei.
"@react-three/rapier": "^1.3.1", "three": "^0.165.0", "next": "14.2.3",
https://github.com/pmndrs/react-three-rapier/assets/54137057/1f75a827-8438-4b2f-aa72-7e144ca9a7b8
any help or suggestions would be appreciated!
useEffect(() => { meshRef.current?.computeBoundingBox() }, [blocks])
ok so calling the method solved the issue
and computeBoundingSphere too...
on onAfterShadow
when i move around or change the pointer direction, the textures on InstancedRigidBodies vanish. it works fine with instances from drei.
"@react-three/rapier": "^1.3.1", "three": "^0.165.0", "next": "14.2.3",
https://github.com/pmndrs/react-three-rapier/assets/54137057/1f75a827-8438-4b2f-aa72-7e144ca9a7b8
any help or suggestions would be appreciated!