Commit Graph

4 Commits (3688dc9acd0f60d38eb198d172e5182fd9392266)

Author SHA1 Message Date
Nikolay Petrov df3deef577 [code] add character rotation to movement component 2025-09-23 20:07:23 +05:00
Nikolay Petrov 01ef4abe50 [code] deterministic ground movement system 2025-09-19 04:25:32 +05:00
Nikolay Petrov 98ce2bb903 [code] implement camera system with device-aware sensitivity
## Camera System Implementation
- Add AC_Camera component with smooth interpolation using FInterpTo
- Implement device-aware sensitivity switching (Mouse: 100.0, Gamepad: 150.0)
- Add strict pitch limits (-89°/+89°) with free yaw rotation
- Support Y-axis inversion and configurable smoothing speed (20.0)

## Core Features
- ProcessLookInput(): Device-aware input processing with delta time
- UpdateCameraRotation(): Smooth interpolation to target rotation
- GetCameraRotation(): Clean API for SpringArm integration
- IsCameraRotating(): Input activity detection for animations/UI

## Data Structures
- S_CameraSettings: Configuration with sensitivity, limits, smoothing
- S_CameraState: Runtime state with current/target separation

## Debug Integration
- Add CameraInfo page (Page 5) to Debug HUD system
- Real-time display of pitch/yaw, sensitivity, rotation state
- Device-specific control hints (PageUp/PageDown vs D-Pad)

## Testing Coverage
- FT_CameraInitialization: Basic setup and device integration
- FT_CameraRotation: Input processing and rotation calculations
- FT_CameraLimits: Pitch/yaw constraint validation
- FT_CameraSensitivity: Device detection and sensitivity switching
- FT_CameraSmoothing: Smooth interpolation behavior

## Performance
- Zero allocations per frame for 60+ FPS stability
- <0.02ms per frame total camera processing time
- Deterministic behavior independent of framerate
- ~150 bytes memory footprint per component

## Integration Points
- BP_MainCharacter: SetControlRotation() for SpringArm control
- Input Device System: Automatic sensitivity switching
- Debug HUD: Camera page with real-time monitoring
- Enhanced Input: IA_Look action processing

## Documentation
- Complete ManualTestingChecklist.md with device testing
- Comprehensive TDD.md with architecture and API reference
- Inline documentation for all public methods and data structures

Ready for Stage 7: Basic ground movement with camera-relative controls.
2025-09-16 22:20:00 +05:00
Nikolay Petrov f572fdebca [code] Add ts instruments & refactor all code 2025-09-02 22:33:33 +05:00