This commit is contained in:
2025-08-06 09:57:36 +05:30
parent 93b1fa8b33
commit 76f295d9b9
2 changed files with 27 additions and 4 deletions

View File

@@ -163,7 +163,7 @@ function RoboticArmAnimator({ HandleCallback, restPosition, ikSolver, targetBone
// Handle nearest points and final path (including arc points)
useEffect(() => {
if (circlePoints.length > 0 && currentPath.length > 0) {
if (circlePoints.length > 0 && currentPath.length > 0 && ikSolver.mesh) {
let start = currentPath[0];
let end = currentPath[currentPath.length - 1];
@@ -251,7 +251,6 @@ function RoboticArmAnimator({ HandleCallback, restPosition, ikSolver, targetBone
}
if (currentPhase === 'end-to-rest') {
console.log('currentPhase: ', currentPhase);
const armbotModel = scene.getObjectByProperty("uuid", armBot.modelUuid);
const armbotWorldPos = new THREE.Vector3();