struct
VehicleComponent
- Module
- Physics
- Header
#include "Physics/Components/VehicleComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
std::vector<FVehicleWheelSetup> | wheels | Per-wheel authoring. Empty keeps the legacy four-wheel layout built from the fields below, so a scene saved before wheels were authorable drives exactly as it did. |
float | wheelRadius | Default 0.35f. |
float | wheelWidth | Default 0.25f. |
float | axleOffset | Default 1.3f. |
float | trackHalfWidth | Default 0.8f. |
float | suspensionAttachY | Default -0.2f. |
float | suspensionMinLength | Default 0.3f. |
float | suspensionMaxLength | Default 0.5f. |
float | maxEngineTorque | Default 500.0f. |
float | minRPM | Default 1000.0f. |
float | maxRPM | Default 6000.0f. |
std::vector<Vec2> | torqueCurve | Normalized engine curve: x = RPM fraction (0 = minRPM, 1 = maxRPM), y = torque fraction of maxEngineTorque. Empty = Jolt's default curve. |
std::vector<float> | gearRatios | Engine-to-gearbox ratios, 1st gear first. Empty = Jolt's default box. |
std::vector<Vec2> | longitudinalFrictionCurve | Tyre model, shared by every wheel and scaled per wheel. Longitudinal: x = slip ratio (0 = rolling in sync, 1 = locked and sliding), y = friction. Lateral: x = slip angle in degrees, y = friction. Empty = Jolt's defaults (a 1.2 peak falling to 1.0). |
std::vector<Vec2> | lateralFrictionCurve | |
float | maxSteerDegrees | Default 30.0f. |
bool | rearWheelDrive | Default true. |
bool | castSphereTester | A ray tester is a point contact: the wheel falls into every gap narrower than itself and pops over kerbs. The cast sphere sweeps the wheel's own width, at the cost of a shape cast per wheel per step. Default false. |
float | antiRollStiffness | A spring between the left and right wheel of each axle that resists the body rolling in a corner: the outside wheel is pressed down and the inside one lifted. 0 turns it off. Read live, so it can be tuned while driving. Default 0.0f. |
Vec3 | wheelModelRight | The wheel mesh's own axle and up axes, so one model serves both sides (the system mirrors right for wheels at negative x). Default Vec3(1.0f, 0.0f, 0.0f). |
Vec3 | wheelModelUp | Default Vec3(0.0f, 1.0f, 0.0f). |
bool | tracked | Tank mode: wheelsPerTrack road wheels per side inside two driven tracks; steer becomes the track-ratio differential (skid steering) instead of a wheel angle. Default false. |
int32_t | wheelsPerTrack | Default 5. |
float | throttle | Default 0.0f. |
float | steer | Default 0.0f. |
float | brake | Default 0.0f. |
float | handbrake | Default 0.0f. |
float | currentRPM | Default 0.0f. |
int32_t | currentGear | Default 0. |
std::vector<FVehicleWheelState> | wheelStates | One entry per simulated wheel, in the order the layout resolved them. |
Constructors
| Signature | Name | Description |
|---|---|---|
VehicleComponent() = default | VehicleComponent |
Function details
VehicleComponent
C++
VehicleComponent() = defaultGenerated from Physics/Components/VehicleComponent.h via physics.json · Nov 4, 2026Version 1.0.0