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:
@@ -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]}
|
||||
|
||||
Reference in New Issue
Block a user