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