NWH Common
Shared utilities and components used across all NWH packages.
This package provides foundational systems for NWH Physics World - a collection of inter-compatible vehicle simulation assets.
Overview
NWH Common is the foundation package used by all NWH physics assets. It provides:
- Input System - Flexible provider-based input architecture
- Camera System - Camera management and control
- NUI Framework - Custom editor GUI framework
- Utilities - Math, geometry, and conversion utilities
- Center of Mass - Rigidbody CoM and inertia control
- Shifting Origin - Large world support
Used By
NWH Common is automatically included with:
- NWH Vehicle Physics 2 (Asset Store | Documentation) - Complete vehicle simulation
- NWH Dynamic Water Physics 2 (Asset Store | Documentation) - Water interaction and boat physics
- NWH Aerodynamics (Asset Store | Documentation) - Flight simulation and aerodynamics
- Wheel Controller 3D (Asset Store | Documentation) - Advanced wheel physics
Key Features
- Provider Pattern Input - Abstracted input supporting Unity Input Manager, Input System, Rewired, and custom providers
- Camera Management - Easy multi-camera switching and control
- Custom Editors - Consistent, professional inspector UI across all NWH assets
- Math Utilities - Optimized physics and geometry calculations
- Large World Support - Shifting origin for maps exceeding 1000m
- Unity 6000 Compatible - Fully tested with Unity 6000 and URP
Documentation
Manual:
- Input System - Flexible input provider architecture
- Camera System - Camera management and control
- Variable Center of Mass - Rigidbody CoM adjustment
- Utilities - Math, geometry, and conversion helpers
- NUI Framework - Custom editor framework
- Shifting Origin - Large world support
Reference:
- API Documentation - Complete API reference available in the navigation menu
Requirements
- Unity 6000 or newer
- No external dependencies - Uses only Unity built-in packages
Architecture
NWH Common uses several design patterns:
- Provider Pattern - Input abstraction for flexible input sources
- Singleton Pattern - Scene-level managers (SceneInputProvider)
- Observer Pattern - LOD system for performance optimization
- Strategy Pattern - Pluggable input providers
Support
For questions, problems, or suggestions:
- Email: nwhcoding@gmail.com
- Discord: https://discord.gg/ubFBbM8
This package is automatically installed and updated with NWH physics assets.