feat: Implement collider functionality with drag-and-drop arrows and conditions

- Added Collider and ColliderCondition types to manage collider properties.
- Created a new useColliderStore for managing colliders and their arrows.
- Implemented ColliderArrow component for visual representation and interaction of arrows.
- Enhanced ColliderProperties UI for managing directions and conditions.
- Updated PhysicsSimulator and Scene components to integrate collider features.
- Refactored existing code for better organization and clarity.
This commit is contained in:
2025-08-21 17:57:45 +05:30
parent 57dffa0961
commit d1c78495ea
14 changed files with 965 additions and 118 deletions

View File

@@ -3,13 +3,14 @@ import ColliderCreator from './colliders/colliderCreator'
import { SplineCreator } from './conveyor/splineCreator'
function PhysicsSimulator() {
return (
<>
<MaterialSpawner
position={[1, 2, 4]}
position={[7.1, 2, 12.6]}
spawnInterval={1000}
spawnCount={50}
spawnCount={10}
/>
{/* <MaterialSpawner
position={[3.8, 3, 3]}