We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71cd92a commit 2d96042Copy full SHA for 2d96042
packages/core/src/core/Clipper/index.ts
@@ -321,11 +321,11 @@ export class Clipper
321
// }
322
323
324
- private async pickPlane(world: World): Promise<SimplePlane | undefined> {
+ private pickPlane(world: World): SimplePlane | undefined {
325
const casters = this.components.get(Raycasters);
326
const caster = casters.get(world);
327
const items = this.getAllPlaneMeshes();
328
- const intersects = await caster.castRay({ items });
+ const intersects = caster.castRayToObjects(items);
329
if (intersects) {
330
const found = intersects.object as THREE.Mesh;
331
return [...this.list.values()].find((p) => p.meshes.includes(found));
0 commit comments