refactor: Clean up MaterialSpawner component and improve drag handling logic

This commit is contained in:
2025-08-20 10:37:39 +05:30
parent 7794e51d1f
commit 324b7aa40c
3 changed files with 173 additions and 131 deletions

View File

@@ -6,16 +6,16 @@ function PhysicsSimulator() {
return (
<>
{/* <MaterialSpawner
position={[1, 3, 4]}
spawnInterval={1000}
spawnCount={50}
/> */}
<MaterialSpawner
position={[3.8, 3, 3]}
position={[1, 2, 4]}
spawnInterval={1000}
spawnCount={50}
/>
{/* <MaterialSpawner
position={[3.8, 3, 3]}
spawnInterval={1000}
spawnCount={50}
/> */}
{/* <MaterialSpawner
position={[6, 3, -6]}
spawnInterval={1000}