added human animation pause
This commit is contained in:
@@ -171,21 +171,22 @@ const ArmBotUI = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const targetMesh = scene?.getObjectByProperty("uuid", selectedArmBotData.modelUuid);
|
||||
const targetMesh = scene?.getObjectByProperty("uuid", selectedArmBotData?.modelUuid || '');
|
||||
|
||||
const { handlePointerDown } = useDraggableGLTF(
|
||||
updatePointToState,
|
||||
{
|
||||
minDistance: targetMesh?.userData.iks[0].minDistance || 1.2,
|
||||
maxDistance: targetMesh?.userData.iks[0].maxDistance || 2,
|
||||
maxheight: targetMesh?.userData.iks[0].maxheight || 0.6,
|
||||
minheight: targetMesh?.userData.iks[0].minheight || 1.9,
|
||||
minDistance: targetMesh?.userData?.iks[0]?.minDistance || 1.2,
|
||||
maxDistance: targetMesh?.userData?.iks[0]?.maxDistance || 2,
|
||||
maxheight: targetMesh?.userData?.iks[0]?.maxheight || 0.6,
|
||||
minheight: targetMesh?.userData?.iks[0]?.minheight || 1.9,
|
||||
}
|
||||
);
|
||||
|
||||
if (!selectedArmBotData || !Array.isArray(selectedArmBotData.point?.actions)) {
|
||||
return null; // avoid rendering if no data yet
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
{selectedArmBotData.point.actions.map((action: any) => {
|
||||
|
||||
Reference in New Issue
Block a user