NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Input Manager Scene Input Provider

    Scene-level input provider using Unity's legacy Input Manager system. Handles camera controls, character movement and scene navigation.

    This class is part of the NWH Common package and provides scene-wide input functionality (camera, GUI, vehicle switching) rather than vehicle-specific controls (steering, throttle, brakes).

    Purpose

    InputManagerSceneInputProvider handles:

    • Camera rotation and panning (with optional mouse button modifiers)
    • Camera zoom
    • Camera/vehicle switching
    • Character movement (FPS controls)
    • GUI toggling

    For vehicle-specific input (throttle, steering, brakes), use InputManagerVehicleInputProvider instead (see Input).

    Setup

    1. Add InputManagerSceneInputProvider component to a GameObject in your scene
    2. Configure required axes in Project Settings > Input Manager:
      • CameraRotationX - Horizontal camera rotation (e.g., Mouse X)
      • CameraRotationY - Vertical camera rotation (e.g., Mouse Y)
      • CameraPanningX - Horizontal camera panning
      • CameraPanningY - Vertical camera panning
      • CameraZoom - Camera zoom (e.g., Mouse ScrollWheel)
      • FPSMovementX - Character horizontal movement
      • FPSMovementY - Character forward/back movement
    3. Configure button mappings for:
      • ChangeCamera - Switch camera (default fallback: C key)
      • ChangeVehicle - Switch vehicle (default fallback: V key)
      • ToggleGUI - Toggle UI visibility (default fallback: Tab key)
      • CameraRotationModifier - Mouse button for rotation (default: Mouse0/left-click)
      • CameraPanningModifier - Mouse button for panning (default: Mouse1/right-click)

    Properties

    • requireCameraRotationModifier - If true, camera rotation requires holding the rotation modifier button (e.g., left mouse button)
    • requireCameraPanningModifier - If true, camera panning requires holding the panning modifier button (e.g., right mouse button)

    Complete Documentation

    For complete documentation including architecture, custom providers, and advanced usage, see:

    NWH Common - Input System

    Related

    • Input - Vehicle-specific input configuration
    • Vehicle Input Handler - Vehicle input processing
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics