feat: Enhance ArmBot and StaticMachine mechanics with trigger handling and reset functionality

This commit is contained in:
2025-04-08 18:31:57 +05:30
parent a6993ccd2e
commit 43df50c576
6 changed files with 274 additions and 48 deletions

View File

@@ -193,6 +193,8 @@ const FloorItemsGroup = ({ itemsGroup, hoveredDeletableFloorItem, AttachedObject
if (deleteTool) {
DeleteFloorItems(itemsGroup, hoveredDeletableFloorItem, setFloorItems, setSimulationStates, socket);
// Remove EventData if there are any in the asset.
}
const Mode = transformMode;

View File

@@ -434,7 +434,7 @@ const CopyPasteControls = ({ itemsGroupRef, copiedObjects, setCopiedObjects, pas
};
const backendEventData = {
type: 'StaticMachine',
type: 'ArmBot',
points: createArmBotPoint()
};

View File

@@ -416,7 +416,7 @@ const DuplicationControls = ({ itemsGroupRef, duplicatedObjects, setDuplicatedOb
};
const backendEventData = {
type: 'StaticMachine',
type: 'ArmBot',
points: createArmBotPoint()
};