struct

VehicleComponent

Module
Physics
Header
#include "Physics/Components/VehicleComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
boolenabledDefault true.
std::vector<FVehicleWheelSetup>wheelsPer-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.
floatwheelRadiusDefault 0.35f.
floatwheelWidthDefault 0.25f.
floataxleOffsetDefault 1.3f.
floattrackHalfWidthDefault 0.8f.
floatsuspensionAttachYDefault -0.2f.
floatsuspensionMinLengthDefault 0.3f.
floatsuspensionMaxLengthDefault 0.5f.
floatmaxEngineTorqueDefault 500.0f.
floatminRPMDefault 1000.0f.
floatmaxRPMDefault 6000.0f.
std::vector<Vec2>torqueCurveNormalized engine curve: x = RPM fraction (0 = minRPM, 1 = maxRPM), y = torque fraction of maxEngineTorque. Empty = Jolt's default curve.
std::vector<float>gearRatiosEngine-to-gearbox ratios, 1st gear first. Empty = Jolt's default box.
std::vector<Vec2>longitudinalFrictionCurveTyre 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
floatmaxSteerDegreesDefault 30.0f.
boolrearWheelDriveDefault true.
boolcastSphereTesterA 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.
floatantiRollStiffnessA 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.
Vec3wheelModelRightThe 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).
Vec3wheelModelUpDefault Vec3(0.0f, 1.0f, 0.0f).
booltrackedTank 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_twheelsPerTrackDefault 5.
floatthrottleDefault 0.0f.
floatsteerDefault 0.0f.
floatbrakeDefault 0.0f.
floathandbrakeDefault 0.0f.
floatcurrentRPMDefault 0.0f.
int32_tcurrentGearDefault 0.
std::vector<FVehicleWheelState>wheelStatesOne entry per simulated wheel, in the order the layout resolved them.

Constructors

SignatureNameDescription
VehicleComponent() = defaultVehicleComponent

Function details

VehicleComponent

C++
VehicleComponent() = default
Generated from Physics/Components/VehicleComponent.h via physics.json · Nov 4, 2026Version 1.0.0