How bhaptics/haptic-library works
Core Library Layer
• Sub-components:
• HapticManager
• ProjectModel
• WebSocket Client
• Timer/Utils
Integration Layers
• Unity Integration
• Unreal Integration
• C# Integration (WPF)
Hardware Communication Layer
• WebSocket connection between core library and player
• Supported haptic devices (Vest, Arms, Hands, etc.)
API Interface Layer
• Public API surface:
• Haptic Clip Management
• Device Status/Connection
• Playback Controls
• Event System
[Applications/Games]
• ↓
[Integration Layers]
• ↓
[Haptic Library Core]
• ↓
[bHaptics Player]
• ↓
[Hardware Devices]
Connection Types
• Double lines: Data flow
Key Elements to Highlight:
Data Flow
• How haptic feedback data flows from application through the system:
• Application → Integration Layer → Core Library → Player → Devices
Communication Protocols
• WebSocket connection between library and player
• Device communication protocols
Cross-Platform Support
• Platform-specific components
• Shared core functionality
Component Relationships
• Dependency management
• Initialization flow
• Event handling paths
Additional Notes:
Version Information
• Current version: 1.4.14
• Supported platforms
• Required dependencies
System Requirements
• BHaptics Player requirement
• OS compatibility
• Hardware dependencies