refactor: Clean up console logs and adjust MaterialSpawner properties

This commit is contained in:
2025-08-23 09:37:47 +05:30
parent a830f03be9
commit e725610674
5 changed files with 47 additions and 66 deletions

View File

@@ -21,7 +21,7 @@ function MaterialSpawner({ position: initialPos, spawnInterval, spawnCount }: Ma
ref: React.RefObject<RapierRigidBody>;
materialType: string;
}[]>([]);
const [spawningPaused, setSpawningPaused] = useState(false);
const [spawningPaused, setSpawningPaused] = useState(true);
const spawnedCount = useRef(0);
const { gl, camera, pointer, controls } = useThree();
const [draggedId, setDraggedId] = useState<string | null>(null);