This plug-in was last built against Unreal Engine 5.2. It was built with Enhanced Input plugin. However, since version 5.1, the legacy input system is now being deprecated and will be replaced by the Enhanced Input system.
Chaos Vehicles is Unreal Engine's lightweight system for performing vehicle physics simulations. You can read more about Chaos Vehicles and how to get started.
You can install via Epic Games Marketplace.
Or you can install via git on your terminal. Here is the command for installing it:
git clone [email protected]:MrRobinOfficial/Unreal-CommonVehicle.git CommonVehicle
To get started with this plugin, you can effortlessly extend either the ACarPawn
or ACarDriveablePawn
classes. The ACarDriveablePawn
class provides additional functionality for handling input and camera movement, enhancing the control and immersive experience.
Furthermore, it is recommended to configure the input actions using the Enhanced Input system, which has been officially adopted since Unreal Engine version 5.1. This system replaces the deprecated input system and offers improved features and flexibility.
Once you have completed the configuration and setup process, your chaos vehicle is ready to go! If you need assistance with setting up animations, engine curves, or physics, we have a helpful video tutorial available for you to watch by LeafBranchGames.
Now that your chaos vehicle is complete, you can further enhance its functionality by tweaking it in the blueprint editor. To explore the wide range of features and possibilities offered by this plugin, we recommend reading the detailed Overview
section or exploring the comprehensive documentation available in our GitHub repository.
Unleash the full potential of your chaos vehicle and delve into the extensive functionality provided by this plugin. Enjoy the immersive experience and create captivating projects with ease.
In this plugin, you have a couple of classes to keep track on.
#include "Vehicle.h"
Interface for basic functionally for a vehicle (boat, car, airplane)
void Honk()
void Explode()
#include "Components/CommonVehicleMovementComponent.h"
Extends from UChaosWheeledVehicleMovementComponent
and contains extra functionality. Such as clutch simulation and more defined getters/setters.
Click here for reading more about UChaosWheeledVehicleMovementComponent
in the API docs.
Contains extra multicast delegates, such as OnEngineStateChanged
and OnGearChanged
.
void SetClutchInput()
void IncreaseClutchInput()
andvoid DecreaseClutchInput()
float GetForwardSpeedKmh()
andfloat GetForwardSpeedMS()
bool GetEngineState()
Extends from UChaosWheeledVehicleSimulation
which handles the vehicle simulation. It overrides the class functionality, to add more functionality, such as clutch simulation and ability to stall the engine.
Click here for reading more about UChaosWheeledVehicleSimulation
in the API docs.
#include "Vehicles/CarPawn.h"
Pawn for basic functionally of a car. Such as headlights, taillights and movement component.
void SetLightState()
ELightState GetLightState()
#include "Vehicles/CarDriveablePawn.h"
Extends from ACarPawn
and contains extra functionality for handling player input and camera movement.
#include "Library/VehicleLibrary.h"
A library containg static functions for ACarPawn
and IVehicle
.
If you have any questions or issue, just write either to my YouTube channel, Email or Twitter DM.