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.
This commit is contained in:
2025-07-17 14:31:43 +05:30
parent 65ef6839a0
commit 660e21edcc
17 changed files with 756 additions and 71 deletions

View File

@@ -30,6 +30,7 @@ import { getVersionHistoryApi } from "../services/factoryBuilder/versionControl/
import { useVersionHistoryStore } from "../store/builder/useVersionHistoryStore";
import { VersionProvider } from "../modules/builder/version/versionContext";
import { sharedWithMeProjects } from "../services/dashboard/sharedWithMeProject";
import SecondaryCanvas from "../modules/secondaryCamera/secondaryCanvas";
const Project: React.FC = () => {
let navigate = useNavigate();
@@ -140,6 +141,9 @@ const Project: React.FC = () => {
<ComparisonSceneProvider />
</VersionProvider>
</SceneProvider>
<SecondaryCanvas />
{selectedUser && <FollowPerson />}
{isLogListVisible && (
<RenderOverlay>