NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Camera Mouse Drag

    CameraMouseDrag inspector.

    Mouse-based camera rotation script for free-look and orbit camera setups. Can be used for both first-person and third-person perspectives.

    Note: CameraMouseDrag is part of NWH Common. For comprehensive camera system documentation, setup examples, and advanced configurations, see NWH Common - Camera System.

    Setup
    • Attach to any Camera GameObject
    • Optionally assign Target that the camera will follow (defaults to auto-finding the vehicle if left empty)
    • Position camera as desired relative to the target
    Controls
    • Left Mouse Button (LMB): Rotate camera by dragging
    • Middle Mouse Button (MMB): Zoom in and out
    • Right Mouse Button (RMB): Pan camera
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics