NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Crash Component

    CrashComponent inspector.

    Plays impact sounds when the vehicle collides with objects. Sound is played at the collision contact point for spatial accuracy.

    Properties

    • Pitch Randomness: Random pitch variation applied to each collision sound. Randomizes pitch in range [basePitch * (1 ± pitchRandomness)]. Value of 0.4 allows pitch variation between 0.6x and 1.4x base pitch.
    • Velocity Magnitude Effect: Multiplier for how much collision velocity affects sound volume. Higher values make faster impacts disproportionately louder. A value of 1 provides linear scaling.

    Features

    • Supports multiple audio clips with random selection for variation
    • Volume scales dynamically based on collision velocity magnitude
    • Triggered via VehicleController.onCollision event
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics