NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Namespace NWH.VehiclePhysics2

    Classes

    Brakes

    Distributes brake torque to the wheels and controls the handbrake and automatic braking, including off-throttle braking and idle braking.

    LOD

    A single Level of Detail band. Distant vehicles run fewer active components and cheaper updates, so each LOD holds the distance at which the vehicle drops to that detail level.

    ManagerVehicleComponent

    Base class for components that manage child VehicleComponents (EffectManager, SoundManager, ModuleManager). Propagates all VC_ lifecycle methods to children. Override FillComponentList() to define your child collection.

    StateDefinition

    Stores the runtime state configuration for a single VehicleComponent. Determines whether a component is enabled and at which LOD level it should operate.

    StateSettings

    Asset holding the per-component enabled state and the LOD distance bands for a vehicle. One asset is usually shared by several vehicles, so it doubles as a performance profile.

    Steering

    Converts steering input into per-wheel steer angles, with Ackermann geometry on two-wheel axles, speed-sensitive angle and rate reduction, and visual steering wheel animation. Front and rear steering both come from the wheel group steer coefficients.

    VehicleComponent

    Base class for every vehicle subsystem and module: Powertrain, Steering, Brakes, Effects, Sound and the rest. Defines the initialize/update/enable/disable interface and the LOD hooks.

    VehicleController

    VehicleController collision handling. Forwards Unity's OnCollisionEnter to a UnityEvent the damage system and any gameplay code can subscribe to.

    VehicleUtility

    Static utility class for vehicle setup: CoM calculation, wheel dimension detection, suspension configuration, and inertia tensor calculation. All SI units.

    Structs

    VehicleController.MultiplayerState

    Data structure containing all vehicle state information needed for network synchronization. Optimized for minimal network bandwidth usage.

    Enums

    Brakes.HandbrakeType

    Defines how the handbrake responds to input and maintains its state.

    Delegates

    Brakes.BrakeTorqueModifier

    Returns a multiplier applied to brake torque. 1 is neutral, 0 disables braking.

    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics