chrono::vehicle::VehicleObjTag Namespace Reference
Description
Utilities to encode and decode vehicle object tags.
An object tag (int) encodes the vehicle tag (uint16_t) and the tag of the containing part/subsystem type (uint16_t). These are assigned to the ChObj objects (bodies, links, etc) that compose a given part/subsystem.
Functions | |
CH_VEHICLE_API int | Generate (uint16_t vehicle_tag, uint16_t part_tag) |
Generate a vehicle tag and a subsystem tag into an object tag. | |
CH_VEHICLE_API uint16_t | ExtractVehicleTag (int tag) |
Extract the vehicle tag from a body tag. | |
CH_VEHICLE_API uint16_t | ExtractPartTag (int tag) |
Extract the subsystem (part) tag from a body tag. | |