JME - Application Documentation
    Preparing search index...

    Core simulation engine. Owns all active vehicles, manages route assignment, IDM car-following, traffic-light/roundabout entry logic, and per-tick updates.

    Index

    Constructors

    Methods

    • Returns a world-space position that lies distance metres ahead of vehicle v along its route. Returns null when the route is too short or the vehicle has no route points.

      Parameters

      • v: Vehicle

        the vehicle instance

      • distance: number

        distance ahead in world units

      Returns Vector3 | null

      the computed position vector

    • Main update loop of the simulation, handles all car movements.

      Parameters

      • dt: number

        Time delta — change in time since last call

      • junctionObjectRefs: RefObject<Group<Object3DEventMap>[]>

        The refs of junction objects for controller construction

      Returns void