NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Mirrors

    Rear-view mirrors use standard Unity rendering: Camera → RenderTexture → Material applied to mirror mesh with proper UV mapping.

    Setup Overview

    1. Create a Camera positioned at the mirror location, facing backward
    2. Create a RenderTexture asset (target resolution affects performance)
    3. Assign the RenderTexture to the Camera's Target Texture
    4. Assign the RenderTexture to the mirror mesh's Material (Albedo/BaseMap)
    5. Ensure the mirror mesh has proper UV mapping

    Setup Options

    Separate Cameras (Best Quality)

    Each mirror (left, right, rearview) has its own Camera and RenderTexture. Highest fidelity but most expensive.

    Split UV Map (Best Performance)

    Single Camera and RenderTexture shared across multiple mirrors using split UV coordinates. Limitations:

    • Each mirror gets a portion of the texture resolution
    • Rearview mirror cannot show vehicle interior (camera must be outside mesh to avoid clipping)

    Hybrid Approach (Recommended)

    • One Camera/RenderTexture for rearview mirror
    • One Camera/RenderTexture shared between left/right side mirrors

    Performance Considerations

    • Lower RenderTexture resolution (256x256 or 512x512) for mobile
    • Reduce Camera far clip plane to minimum needed distance
    • Disable mirrors entirely on low-end hardware using LOD system
    • Consider disabling shadow rendering on mirror cameras

    Example Vehicles

    See sample vehicles for reference implementations:

    • Euro Truck (Samples~/BaseSample/Vehicles/Euro Truck by GR3D)
    • Sports Car (Samples~/BaseSample/Vehicles/Sports Car by GR3D)
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics