Log inGet started
Package

metropolisVehicles.package

This package holds more than this page lists. See all of its files in its world.

README.md

state

This module manages the frame-by-frame state of every active Metropolis vehicle on a given peer. It registers dressed vehicles (added by metropolisVehicles.resolver) and updates their visual properties, such as lamps, steering wheel angles, scooter leans, and wear (damage, dirt, paint on glass). The module also handles the ink list for painterly rendering. It synchronizes vehicle state across peers by reading and writing replicated named values (pm.show for lamps, pm.wear for damage/dirt) on the vehicle's owner. It also provides hooks for game-layer events like crashes and tire marks. This module is called once per frame by the VehicleSystem component to ensure consistent and dynamic vehicle appearance and behavior.