Hide mesh visibility for custom curve points when playing animation
This commit is contained in:
parent
ba7948ec53
commit
faee5f6090
|
@ -260,7 +260,7 @@ function RoboticArmAnimator({ HandleCallback, restPosition, ikSolver, targetBone
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{customCurvePoints && customCurvePoints?.length >= 2 && currentPath && isPlaying && (
|
{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
|
<Line
|
||||||
points={customCurvePoints.map((p) => [p.x, p.y, p.z] as [number, number, number])}
|
points={customCurvePoints.map((p) => [p.x, p.y, p.z] as [number, number, number])}
|
||||||
color="green"
|
color="green"
|
||||||
|
|
Loading…
Reference in New Issue