RPM Meter (for Vehicles) - user-grinch/ModelExtras GitHub Wiki

RPM Meter Integration for Dashboard

Overview

The RPM Meter feature simulates the vehicle's RPM on the dashboard with an analog display. The needle of the RPM meter rotates on the Y-axis, providing a visual representation of the RPM. Please follow the instructions below to adapt your model for the RPM Meter functionality.

Needle Naming and Positioning

  1. Needle Naming:

    • Name the needle of your RPM meter as x_rpm.
  2. Needle Positioning:

    • Position the needle to point to 0 on the RPM scale.

Example

Suppose you want to configure the RPM meter with a maximum RPM of 6000 and a rotation of 200 degrees to point to the maximum speed:

  • Name the needle x_rpm.
  • Position the needle to point to 0 on the RPM scale.
  • Pass parameters: x_rpm_m6000r200.

By following these steps, you integrate the RPM Meter feature into your model, providing a simulated representation of the vehicle's RPM on the dashboard.

JSONC Configuration Method (Recommended)

Instead of renaming nodes manually, you can configure the data via JSONC, allowing easier tuning and adjustments.

📂 JSONC File Location & Structure

📌 Path: ModelExtras/data/<model_id or model_name>.jsonc
📌 Example File: ModelExtras/data/522.jsonc (for model_ID 522)

{
    "rpmmeter": {
        "maxrpm": 100.0,
        "maxrotation": 100.0
    }
}