-
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.Steer
value from theUVehicle
and applies the correct steering angle to theUWheelColliders
-
CarInputController
- Reads player input withInputManager
and writes the appropriateVehicleInputParameters
to theUVehicle
-
BrakingController
- Reads input fromUVehicle
and applies brake torque toUWheelColliders
-
- Assists
TractionControl
AntiLockBrakingSystem
- Drivetrain
-
ICEngine
- Simple simulation of an internal combustion engine -
ManualGearbox
- Connects to theICEngine
and simulates a manual gearbox with clutch -
OpenDifferential
- Splits the torque fromManualGearbox
betweenUWheelColliders
-
Play around with the values and see how they affect the vehicle.