Overview
The Reset Object Transformation action resets an object back to its original position, rotation, and scale as defined in the Scene Editor. This is useful for undoing manual transformations, restarting task attempts, or returning the scene to its initial state.When to Use
- Reset after failed attempt: restore the scene to its original state when a learner fails a task
- Undo user action: revert a transformation if the learner chooses to restart
- State machine reset: prepare the scene for a new task attempt without reloading
- Mistake recovery: quickly return misplaced objects to their starting positions
- Training restart: reset all objects when learners restart a section
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Object | string | Yes | Select the 3D object to reset from the scene hierarchy. |
Key Behavior
- Instant reset: The object returns immediately to its original state (not animated).
- Original values only: The reset uses the position, rotation, and scale that were set in the Scene Editor when the scene was created.
- Child objects unaffected: Resetting a parent object does not automatically reset its children; reset them individually if needed.
- Safe operation: Resetting an object that hasn’t been transformed has no effect.
Practical Examples
Task Retry with Reset
Scenario: A learner attempts to assemble components but places one incorrectly. When they click “reset,” the misplaced component returns to its original position.State
AssemblyTask:- Scene has components in their starting positions.
- Learner can drag
component_ato try to fit it intoassembly_base.
If learner clicks “Reset Component”:
- Reset Object Transformation: Object:
component_a - Play Audio:
reset_sound.mp3 - Set Variable:
resetCount = resetCount + 1
Multi-Object Reset
Scenario: After a failed assembly attempt, reset multiple components to restart the task cleanly.State
AssemblyFailed (triggered when assembly is incorrect):- Action list:
- Reset Object Transformation: Object:
component_a - Reset Object Transformation: Object:
component_b - Reset Object Transformation: Object:
component_c - Play Audio:
failure_sound.mp3 - Set Variable:
attempts = attempts + 1 - Transition back to AssemblyTask
- Reset Object Transformation: Object:
Undo Last Action
Scenario: Learner moves an object and clicks “undo.” The object resets to its original position.When learner clicks “Undo Last Move” button:
- System tracks which object was last moved (via a variable, e.g.,
lastObjectMoved = "lever"). - Transition triggered with action:
- Reset Object Transformation: Object: (use variable)
lever
- Reset Object Transformation: Object: (use variable)
Scene Reset Between Attempts
Scenario: An inspection training allows learners to practice multiple times. Between attempts, reset the scene to pristine condition.Transition to
PrepareNextAttempt (triggered by “Next Attempt” button):- Action list:
- Reset Object Transformation: Object:
component_a - Reset Object Transformation: Object:
component_b - Reset Object Transformation: Object:
inspection_marker(if it was moved) - Set Variable:
attemptCount = attemptCount + 1 - Transition back to InspectionPractice
- Reset Object Transformation: Object:
Reset on Emergency Exit
Scenario: If a learner encounters an error or wants to restart the entire training section, reset all objects.State
TaskFailed (emergency exit):- Action list:
- Reset Object Transformation: (all interactive objects in the scene)
- Set Variable: reset all relevant tracking variables
- Training Navigation: “Reload to Step” (jump back to the beginning of the section)
Resetting an object clears only the position, rotation, and scale—it does not affect variables or other state. If you want to fully reset a task, also reset related variables (e.g.,
taskAttempts, isComplete).
