Hide mesh visibility for custom curve points when playing animation

This commit is contained in:
Jerald-Golden-B 2025-05-09 16:56:06 +05:30
parent ba7948ec53
commit faee5f6090
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ function RoboticArmAnimator({ HandleCallback, restPosition, ikSolver, targetBone
return (
<>
{customCurvePoints && customCurvePoints?.length >= 2 && currentPath && isPlaying && (
<mesh rotation={armBot.rotation} position={armBot.position} visible={true}>
<mesh rotation={armBot.rotation} position={armBot.position} visible={false}>
<Line
points={customCurvePoints.map((p) => [p.x, p.y, p.z] as [number, number, number])}
color="green"