Appearance
Milestone 2 - Starter Template
This template provides the interaction system foundation for Milestone 2.
What's Included
- IInteractable Interface - Base interface for interactive objects
- InteractionComponent - Player component for detecting interactions
- InteractiveActor - Base class for interactive objects
- PickupActor - Example pickup implementation
- UI Widget Base - Starter widget for interaction prompts
Download Template
Or browse the files in the repository's templates/milestone-2-starter/
directory.
Prerequisites
- ✅ Completed Milestone 1
- ✅ Working character movement and camera system
Implementation Guide
Follow the detailed Milestone 2 Guide to implement:
- IInteractable Interface - Define interaction contract
- InteractionComponent - Sphere tracing for detection
- Interactive Objects - Pickups, doors, and more
- UI System - Interaction prompts and feedback
- Range Detection - Distance-based interaction
Key Features to Implement
- [ ] IInteractable interface with GetInteractionVerb()
- [ ] UInteractionComponent with sphere tracing
- [ ] AInteractiveActor base class
- [ ] Pickup and Door example actors
- [ ] UI prompt showing interaction text
- [ ] Range-based interaction detection
Testing Your Implementation
- Create a pickup in the level
- Walk near it - prompt should appear
- Press interact key - pickup should be consumed
- Walk away - prompt should disappear
Next Steps
After completing this milestone:
- Proceed to Milestone 3 for stats and AI
- Add more interactive object types
- Enhance the UI with animations and styling