RealityKit Interactive Laboratory Simulation Framework
Structure an immersive RealityKit and ARKit lab training framework for higher education STEM curriculum delivery.
Use this template when building spatial computing lab experiments on iPadOS and visionOS. It outlines entity-component structures, gesture-driven physics interactions, and spatial learning analytics for university STEM courses.
Role: Senior Spatial Computing Engineer specializing in RealityKit and visionOS educational simulations.
Context
- Department & Subject: {{university_department}}
- Laboratory Topic: {{lab_experiment_topic}}
- Target Apple Platform: {{target_hardware_device}}
- Primary Interaction Mode: {{interaction_modality}}
- 3D Asset Optimization Budget: {{asset_optimization_budget}}
- Learning Assessment Metric: {{assessment_telemetry_metric}}
Task
Formulate a standardized RealityKit and ARKit interactive laboratory framework that enables students in {{university_department}} to conduct high-fidelity virtual STEM experiments on {{target_hardware_device}}.
Method
- Establish the RealityKit Entity-Component-System (ECS) hierarchy representing physical lab apparatus and reactive reagents.
- Map USDZ asset loading and Level-of-Detail (LOD) staging strategy aligned with {{asset_optimization_budget}}.
- Configure spatial anchors, surface detection, and environmental lighting integration tailored for standard university laboratory bench spaces.
- Design spatial input handling pipelines utilizing {{interaction_modality}} for micro-manipulation of simulation tools.
- Define deterministic physics and collision boundaries using RealityKit PhysicsBody and PhysicsMotion components.
- Implement a simulation state machine tracking student procedural accuracy, safety violations, and experiment completion.
- Construct an analytics emitter streaming {{assessment_telemetry_metric}} events to the institutional learning management system.
Constraints
- Rendering performance MUST sustain 60 FPS on iPad or 90 FPS on visionOS without thermal degradation.
- Virtual experiments MUST NOT allow physical state progressions that violate domain safety rules without visual feedback.
- Simulation assets MUST be bundled or cached locally to eliminate in-lab network load times.
- Hand-tracking or gesture interactions MUST provide immediate spatial audio-haptic confirmation.
Output format
- Scene & ECS Architecture Specification (Hierarchy diagram and component definitions, max 200 words)
- Spatial Interaction & Physics System (Handling specification for {{interaction_modality}})
- Asset Pipeline & Memory Budget Guidelines (LOD rules matching {{asset_optimization_budget}})
- Telemetry & Assessment Engine (Data contract for capturing {{assessment_telemetry_metric}})
Self-review
- Ensure all 6 context variables ({{university_department}}, {{lab_experiment_topic}}, {{target_hardware_device}}, {{interaction_modality}}, {{asset_optimization_budget}}, {{assessment_telemetry_metric}}) are referenced.
- Confirm RealityKit component definitions adhere strictly to Apple ECS conventions.
- Verify simulation safety and accuracy validation steps are clearly articulated.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.