Commit Graph

197 Commits

Author SHA1 Message Date
3394c44ed1 sline points
Replaced hardcoded spline points with first two raycast intersection points on click.

Computed the middle control point using the incenter of a triangle formed with the midpoint as the third vertex, creating a dynamic Bézier curve.
2025-08-01 15:57:11 +05:30
1eac23607f commit 2025-08-01 13:03:38 +05:30
04573b86dd plane geometry added with physics 2025-07-30 18:16:01 +05:30
e001bfaa0a Merge branch 'main-dev' into dev-physics 2025-07-30 12:52:03 +05:30
d3697bb690 feat: Enhance ConveyorCollider with modelName and scene props, add CurvedPlane component, and update PhysicsSimulator to comment out MaterialSpawner 2025-07-30 10:02:55 +05:30
fcd924eb31 feat: Implement undo and redo functionality for 2D scene controls
- Added useRedoHandler to manage redo actions, including socket communication for wall, floor, zone, and aisle updates.
- Added useUndoHandler to manage undo actions, reversing the effects of previous actions with corresponding socket updates.
- Created UndoRedo2DControls component to handle keyboard shortcuts for undo (Ctrl+Z) and redo (Ctrl+Y).
- Established a Zustand store (useUndoRedo2DStore) to maintain undo and redo stacks, with methods for pushing, popping, and peeking actions.
2025-07-29 17:20:34 +05:30
253b3db2ed Refactor position handling in CopyPasteControls3D and DuplicationControls3D; update useRetrieveHandler to include machine and human event management; implement event handlers for model interactions in useEventHandlers. 2025-07-29 11:24:46 +05:30
7d29228541 Refactor Model and Models components to streamline rendering logic; update distanceWorker for improved distance calculations and rendering conditions. 2025-07-28 17:34:36 +05:30
1231bedbb1 Refactor AssetBoundingBox to use cylinders for edges and improve bounding box rendering logic; update Model component to adjust line width for better visibility; enhance distanceWorker to utilize Vector3 for distance calculations. 2025-07-28 17:21:07 +05:30
c224d9bb3c Refactor Model component to remove unused distance worker and implement asset rendering logic based on camera distance 2025-07-28 15:26:49 +05:30
751ac9a4ad Merge branch 'dev-simulation/human' into main-dev 2025-07-28 15:06:03 +05:30
2aab047b6d Refactor useRetrieveHandler to remove unused human event manager and streamline action handling 2025-07-28 15:05:28 +05:30
11ace1977a Refactor asset loading and distance calculation logic for improved performance and clarity 2025-07-28 15:00:24 +05:30
2ac6bbeb9d Refactor mouse button handling and key event logic in MoveControls3D for improved clarity 2025-07-28 14:13:27 +05:30
f86d36c59f Fix position format in event update for moved assets 2025-07-28 13:09:08 +05:30
795c69a3d4 Enhance shadow handling and visibility settings across components 2025-07-28 13:05:32 +05:30
10e7f2f8c4 Refactor action handling in simulation components for improved clarity and efficiency 2025-07-28 12:23:22 +05:30
ec4a4247b2 feat: Implement ColliderCreator and ColliderInstance components, enhance PhysicsSimulator with multiple MaterialSpawner instances 2025-07-23 14:03:00 +05:30
06e4d516ba bug fix 2025-07-22 17:12:09 +05:30
708c8a4ba1 new human event mangaer 2025-07-22 16:33:33 +05:30
88361b1623 human bug fix 2025-07-22 10:19:49 +05:30
ccf64e0f97 bug fix 2025-07-18 17:10:40 +05:30
c9dc6c8642 bug fix 2025-07-18 15:25:22 +05:30
5ae8d8e273 move speed control 2025-07-18 15:11:57 +05:30
c309af135d moveControls and other controls altered 2025-07-18 14:14:34 +05:30
d4d66d9d32 feat: Replace crypto.randomUUID with generateUniqueId in MaterialSpawner and reduce spawnCount to 10 2025-07-17 18:00:55 +05:30
8191e955ca refactor: Remove unused onReachEnd prop from ConveyorCollider component 2025-07-17 17:26:03 +05:30
bbe93a91d5 Merge branch 'main-dev' into dev-physics 2025-07-17 17:23:37 +05:30
0b9f23ba4f tab switch simulation paused implemented 2025-07-17 17:15:53 +05:30
1e314bc290 feat: Refactor conveyor collider logic, enhance material spawning, and remove unused colliders component 2025-07-17 17:15:46 +05:30
9d3365ae86 bug fix 2025-07-17 14:31:57 +05:30
660e21edcc feat: Integrate @react-three/rapier for physics simulation and add conveyor collider functionality
- Added @react-three/rapier to package.json for physics support.
- Refactored AssetBoundingBox to utilize RigidBody for collision detection.
- Implemented ConveyorCollider to manage object movement on conveyor belts.
- Enhanced Model component to include rigid body references and bounding box calculations.
- Updated Ground component to use RigidBody for ground physics.
- Introduced Colliders component to manage material instances with physics interactions.
- Created SecondaryCamera for enhanced camera management and editing capabilities.
- Added secondary canvas for rendering secondary camera views.
- Updated selection controls to utilize bounding boxes for asset selection.
2025-07-17 14:31:43 +05:30
2fd1cf352c schema changes 2025-07-17 13:07:06 +05:30
1d6d42b358 vehicle to human completed 2025-07-17 12:54:47 +05:30
fe09c3df56 human to conveyor, conveyor to human multiple actions completed 2025-07-17 09:44:08 +05:30
e9053ccd1b human assembly rotation and movement bug fixed 2025-07-14 10:45:24 +05:30
7a72d31008 bug fix in line 2025-07-14 09:48:02 +05:30
99b51df468 Merge remote-tracking branch 'origin/main-dev' into main-demo 2025-07-11 18:18:27 +05:30
7dc85b2edd bug fix 2025-07-11 17:41:38 +05:30
96216783ef added 2d point select delete and move 2025-07-11 17:40:15 +05:30
a42007ec14 Merge remote-tracking branch 'origin/main-dev' into main-demo 2025-07-11 16:39:38 +05:30
4baef5fa77 add 2d selection and delete 2025-07-11 16:27:55 +05:30
633a568d7f human bug fix 2025-07-11 13:46:52 +05:30
b58cdf45b0 Merge remote-tracking branch 'origin/main-dev' into main-demo 2025-07-11 13:15:26 +05:30
52ac89f8b7 added storage unit to human 2025-07-11 13:14:18 +05:30
646028f39f feat: add keyboard-based mouse action helper with Zustand integration
- Implemented `mouseActionHelper.ts` to track modifier keys (e.g. CONTROL, SHIFT)
- Dynamically constructs mouse+modifier combos (e.g. left+CONTROL)
- Updates Zustand store (`useMouseNoteStore`) with appropriate notes
- Supports multi-key combinations and cleans up listeners on unmount
2025-07-11 13:06:17 +05:30
24ff130d82 feat: Enhance cursor handling and mouse action notes in the footer and builder components 2025-07-11 12:31:00 +05:30
d92e1b8ea4 Merge remote-tracking branch 'origin/main-demo' into main-dev 2025-07-11 09:35:49 +05:30
56b6195ee5 started storage to human 2025-07-11 09:35:29 +05:30
5d40139e95 Add custom SVG cursors and update cursor handling
- Introduced new SVG cursor assets: cross, default, export, move, open, pen, and pointing.
- Implemented SCSS styles for cursor usage in the scene container, defining specific cursors for different modes (draw, pointer, pen, measure, hand).
- Enhanced cursor functionality by adding a utility function to handle canvas cursor changes based on user actions, mapping specific actions to corresponding cursor styles.
2025-07-11 09:26:21 +05:30