-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Łukasz Sowa edited this page May 16, 2022
·
2 revisions
Welcome to the UDrive wiki!
Best way to start using UDrive is by adding the example car prefab from Packages/UDrive/Runtime/Examples to your scene.

You also might want to add a camera that will follow the car. You can use the included VehicleFollowCamera for that.
When you start the play mode you should be able to drive the example car, you should also see the IngameDebugger window:

IngameDebugger is one of the VehicleComponents attached to the ExampleCar. Other notable components include:
-
UVehicle- Core of the vehicle -
Rigidbody- Required for physics calculations -
UWheelColliders- Compute wheel friction forces and apply them to the vehicle'sRigidbody - Controllers
-
TwoWheelSteeringController- ReadsVehicleInputParameter.Steervalue from theUVehicleand applies the correct steering angle to theUWheelColliders -
CarInputController- Reads player input withInputManagerand writes the appropriateVehicleInputParametersto theUVehicle -
BrakingController- Reads input fromUVehicleand applies brake torque toUWheelColliders
-
- Assists
TractionControlAntiLockBrakingSystem
- Drivetrain
-
ICEngine- Simple simulation of an internal combustion engine -
ManualGearbox- Connects to theICEngineand simulates a manual gearbox with clutch -
OpenDifferential- Splits the torque fromManualGearboxbetweenUWheelColliders
-
Play around with the values and see how they affect the vehicle.