Claude AI suggests:
// Game startup flow:
1. GameMode BeginPlay
-
- Set IsVRMode*
-
- Setup initial state*
2. PlayerController BeginPlay
-
- Get IsVRMode from GameMode*
-
- Setup appropriate input context*
3. GameMode SpawnVehicle
-
- Spawn vehicle blueprint*
-
- Pass initial setup parameters*
4. Vehicle BeginPlay
-
- Get IsVRMode from GameMode*
-
- Setup appropriate components*
-
- Initialize input handlers*
Also suggests a single vehicle pawn with VR capabilities:
Vehicle Pawn Begin Play / construction script:
- Get IsVRMode from GameMode
- IF VRMode:
-
- Create VR Camera Component*
-
- Setup VR-specific attachments*
-
- Enable VR-specific functions*
ELSE:
- Enable VR-specific functions*
-
- Setup regular camera*
-
- Enable debug features*
// Implement separate functions for:
HandleVRInput()
HandleNonVRInput()
How does this all sound?