0 Overview
0 Overview
FGear is a custom vehicle physics solution for unreal engine 4 that helps you build arcade/semi-
arcade style racing games. The package consists of a core module and some extra features that were
used for making the demo scenes. The package is mostly focused on 4 wheel cars but multi axle
setups are also possible.
Core features:
Desktop or mobile.
Adjustable integration steps.
Simplified pacejka, pacejka96 and MF6.1 tire model options.
3D wheel support(multiple raycasts or sphere/convex cast).
Simple engine model with a torque curve.
Configurable auto/sequential/manual(h-pattern) transmissions.
Open, locked or lsd differential options.
Ackerman steering, toe and camber.
Adjustable torque and brake distribution of axles.
Simple spring/damper suspensions with preload option.
Multi axle setup support.
AeroDynamics component for drag and downforce effects.
Standard input manager with keyboard,joystick and wheel+shifter support.
Driving aids like abs, asr, esp and anti roll bars.
Detailed telemetry ui.
Various sample setups and demos.
The below diagram shows how the core module is organized:
• AFGearVehicle : This class is the host to all components of a vehicle and the only class that
you need to inherit from for a driveable vehicle. Apart from managing components, this also
contains implementations of most of the driving assists.
• UFGearEngine : Uses a torque curve and rpm values to generate power to the vehicle.
• UFGearAeroDynamics : This component has two jobs. First a drag force is generated as the
vehicle goes faster and secondly a down force is applied. These are calculated according to
the parameters and a constant air density value.
• UFGearStandardInput : The first duty of this component is to read unreals input axis values
and apply them to the vehicle like throttle or brakes. Keyboard, joystick or wheel+shifter
inputs can be used(wheel hardware requires the raw input plugin of unreal). Optionally this
modifies the steering inputs according to some parameters to provide a better control.
• UFGearAxle : The main function of an axle is the power transfer. Engine torque is tranferred
to the axle and the axle transfers torque to the wheels via a differential. A vehicle has 2 or
more axles and an axle has 2 wheels attached.
• UFGearWheel : The wheel component both generates the tire forces and the suspension
force. One or more raycasts are used to determine the suspension compression and the
required force is calculated to keep the vehicle away from ground. To generate lateral and
longitudinal forces, a tire model is used. The generated forces are applied to the vehicle body
and also the reaction torques are fed back to the engine.
• UFGearTire : Wheels use tire model(s) to calculate traction forces. The default tire model is
pacejka96. Simplified pacejka is also decent and computationaly cheaper. MF6.1 tire model is
the most advanced one. Some features like camber effect is not available with the simple
model. Which one to use depends on your requirements. You can read more about tire
models in CoreModule documentation.
• UFGearReplication : Aims to provide smooth network replication. It has three main tasks,
input and state synchronization and client prediction.
• Extra Features(Optional) : There are some additional content that are used for the sample
scenes. You can use them for prototyping and learning purposes but they are not
recommended for production use. Here are the extras:
*if api documents content is not visible, right click the .chm file and unblock the file from properties: