mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 17:08:13 +00:00
fixed recursive checking.
This commit is contained in:
1 parent
2d07b9bbcd
commit
4dcc68d208
1 file changed
+1
-1
@@ -196,7 +196,7 @@ export class TimeLine {
|
||||
let raycaster = new THREE.Raycaster();
|
||||
if (this.mouse && this.camera) {
|
||||
raycaster.setFromCamera(this.mouse, this.camera);
|
||||
const intersects = raycaster.intersectObjects(this.scene.scene.children, true);
|
||||
const intersects = raycaster.intersectObjects(this.scene.scene.children, false);
|
||||
console.log(intersects);
|
||||
if (intersects.length > 0) {
|
||||
return intersects[0].point;
|
||||
|
||||
Reference in new issue
Block a user