NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Camera Inside Vehicle

    Marks a camera as positioned inside a vehicle. Sets the Vehicle.CameraInsideVehicle property, which triggers UnityEvents that audio systems can use to apply interior sound effects.

    Note: CameraInsideVehicle is part of NWH Common. For detailed camera system documentation, see NWH Common - Camera System.

    Setup

    • Attach to a camera GameObject within the vehicle hierarchy.
    • Requires a Vehicle component in the parent chain.
    • When using CameraChanger, it automatically detects this component when switching cameras.

    Properties

    isInsideVehicle

    • Whether the camera is currently inside the vehicle.
    • Sets Vehicle.CameraInsideVehicle, triggering onCameraEnterVehicle or onCameraExitVehicle events.
    • Audio systems typically subscribe to these events to apply interior acoustic effects.
    • Default: true
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics