Driving Chaos Vehicle
![](https://static.wixstatic.com/media/204c38_73382534213247bda07a0f160fe91a2f~mv2.png/v1/fill/w_980,h_548,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/204c38_73382534213247bda07a0f160fe91a2f~mv2.png)
Import Mesh and Texture: Crab the model and texture into Browser
![](https://static.wixstatic.com/media/204c38_bcce4c4248f64a2e868a7a02bc857555~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_bcce4c4248f64a2e868a7a02bc857555~mv2.png)
![](https://static.wixstatic.com/media/204c38_9eaf3f47e5d640c0a042e1f64dec7119~mv2.png/v1/fill/w_250,h_482,al_c,q_85,enc_auto/204c38_9eaf3f47e5d640c0a042e1f64dec7119~mv2.png)
Car already rig and skin
FBX import Options:
Skeletal Mesh: turn on
Combine Meshes: If you have many separate mesh, you could turn on
Plugins:
ChaosVehiclesPlugin
![](https://static.wixstatic.com/media/204c38_0a784306ef8a4d76b3aa495909021e94~mv2.png/v1/fill/w_554,h_314,al_c,q_85,enc_auto/204c38_0a784306ef8a4d76b3aa495909021e94~mv2.png)
WheeledVehiclePawn
![](https://static.wixstatic.com/media/204c38_0f7263d7113d42f09880c6d9ba2e12b2~mv2.png/v1/fill/w_93,h_302,al_c,q_85,enc_auto/204c38_0f7263d7113d42f09880c6d9ba2e12b2~mv2.png)
Create BP:
Right click mouse > Blueprint Class
All Classes:
search: vehicle
Select “ WheeledVehiclePawn ”
![](https://static.wixstatic.com/media/204c38_f1a31598a53b4db2be23d879f17c67a8~mv2.png/v1/fill/w_537,h_303,al_c,q_85,enc_auto/204c38_f1a31598a53b4db2be23d879f17c67a8~mv2.png)
Mesh > Skeletal Mesh Asset > car
![](https://static.wixstatic.com/media/204c38_c8dd3e67843e45afbd7ecb3dc4ce3c91~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_c8dd3e67843e45afbd7ecb3dc4ce3c91~mv2.png)
Camera
Left side > +Add > SpringArm and Camera
Setup camera target Arm Length: 600
Camera Settings:
Turn off:
Inherit Pitch
Inherit Yaw
Inherit Roll
Camera Collision:
Probe Size: 0
Do collsion test: Turn Off
![](https://static.wixstatic.com/media/204c38_8f9d8489ad1048a59fb36adbe045f54b~mv2.png/v1/fill/w_531,h_299,al_c,q_85,enc_auto/204c38_8f9d8489ad1048a59fb36adbe045f54b~mv2.png)
Wheel Setup
Select Vehicle Movement Component
This car has four wheels so Press 4 times to add
Wheel Setup > Wheel Setups > +
![](https://static.wixstatic.com/media/204c38_34eb45f85b924527b33f5b25c17a6e3b~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_34eb45f85b924527b33f5b25c17a6e3b~mv2.png)
Go to Skeleton and copy bone name
Select the bone > right click > Copy selected Bone Names
![](https://static.wixstatic.com/media/204c38_6119a03bf7c6422c9927e5b6842166f2~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_6119a03bf7c6422c9927e5b6842166f2~mv2.png)
Paste to Wheel setups index bone name
![](https://static.wixstatic.com/media/204c38_da789adfa0d545e7852fee2b9e084d26~mv2.png/v1/fill/w_401,h_459,al_c,q_85,enc_auto/204c38_da789adfa0d545e7852fee2b9e084d26~mv2.png)
Engine Torque Setup
Vehicle Movement component > Mechanical Setup
![](https://static.wixstatic.com/media/204c38_7bd33cfc69d24ebeb814bca9250c82de~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_7bd33cfc69d24ebeb814bca9250c82de~mv2.png)
Two options can create Torque curve
![](https://static.wixstatic.com/media/204c38_0ddbea89239042eb9892b86ce18f499c~mv2.png/v1/fill/w_328,h_216,al_c,q_85,enc_auto/204c38_0ddbea89239042eb9892b86ce18f499c~mv2.png)
Option1: Double click to show the Torgue curve window
![](https://static.wixstatic.com/media/204c38_7e527314fdac4d0dbe33e669421ccc19~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_7e527314fdac4d0dbe33e669421ccc19~mv2.png)
The graph's X axis represents the engine RPM (revolutions per minute)
The graph's Y axis represents the engine Torque output in NM (Newton Meters)
Total Tougue : 300
Add curve points in 300
Shift + left click mouse : Add points
Curve like image
![](https://static.wixstatic.com/media/204c38_3951a1a83d5444e1b879f3d153d46ab6~mv2.png/v1/fill/w_382,h_257,al_c,q_85,enc_auto/204c38_3951a1a83d5444e1b879f3d153d46ab6~mv2.png)
Option 2:
![](https://static.wixstatic.com/media/204c38_0464ca3e828d4a67a25ed2560bc2e230~mv2.png/v1/fill/w_196,h_252,al_c,q_85,enc_auto/204c38_0464ca3e828d4a67a25ed2560bc2e230~mv2.png)
Right Click mouse > Miscellaneous > Curve
![](https://static.wixstatic.com/media/204c38_a76646d1e56443bfb84a7ad5566619f2~mv2.png/v1/fill/w_318,h_150,al_c,q_85,enc_auto/204c38_a76646d1e56443bfb84a7ad5566619f2~mv2.png)
Pick Curve Class: CurveFloat
Add Keys
![](https://static.wixstatic.com/media/204c38_abe91c7556a844c0b415f4cfa6ec8aa1~mv2.png/v1/fill/w_483,h_272,al_c,q_85,enc_auto/204c38_abe91c7556a844c0b415f4cfa6ec8aa1~mv2.png)
Go to BP_Car
Vehicle Movement component > Mechanical Setup
External Curve > select curve
![](https://static.wixstatic.com/media/204c38_96b6f29f713d45968c9d0de39c8b982f~mv2.png/v1/fill/w_307,h_244,al_c,q_85,enc_auto/204c38_96b6f29f713d45968c9d0de39c8b982f~mv2.png)
Chaos Vehicle wheel Blueprint
In most cases, you will require at least two wheel types per vehicle.
A wheel that is affected by the steering / engine / handbrake, and one that is not.
This may be the case for having differently sized wheels for the front or the back
Create wheel BP:
Blueprint Class > ChaosVehicleWheel
![](https://static.wixstatic.com/media/204c38_13a5709b6d3641ab97ea6792f01f96d5~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_13a5709b6d3641ab97ea6792f01f96d5~mv2.png)
Create front and rear wheel BP
![](https://static.wixstatic.com/media/204c38_1a8edc26718a4ee9a387ea6a07a6b833~mv2.png/v1/fill/w_170,h_129,al_c,q_85,enc_auto/204c38_1a8edc26718a4ee9a387ea6a07a6b833~mv2.png)
Double click BP_Front_Wheel
Setup
Wheel > Axle Type : Front
Affected by Handbrake: Turn Off
Affected by Engine: Turn on
Wheels setup
Max steer Angle:45
Affected by steering: Turn on
![](https://static.wixstatic.com/media/204c38_d4fd284a4819426c9e4b4eec6ffa0f67~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_d4fd284a4819426c9e4b4eec6ffa0f67~mv2.png)
Double click BP_Rear_Wheel
Setup
Wheel > Axle Type : Front
Affected by Handbrake: Turn on
Affected by Engine: Turn on
![](https://static.wixstatic.com/media/204c38_38ff6fd3431c45b6a49cf3dc055bca0a~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_38ff6fd3431c45b6a49cf3dc055bca0a~mv2.png)
Go back to BP_Car
Update wheel setups class
![](https://static.wixstatic.com/media/204c38_ca9f8106feb242dcb98bbf1ef9761a4b~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_ca9f8106feb242dcb98bbf1ef9761a4b~mv2.png)
Turn on Simulate Physics
![](https://static.wixstatic.com/media/204c38_e8bad0997f2b42e4a6a7cdc56f6670a3~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_e8bad0997f2b42e4a6a7cdc56f6670a3~mv2.png)
Game Mode
![](https://static.wixstatic.com/media/204c38_45222aa660af43769339d25a1cd77f66~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_45222aa660af43769339d25a1cd77f66~mv2.png)
Default Pawn Class: BP_Car
![](https://static.wixstatic.com/media/204c38_5d18ba7d9dcc4b06906f852f687c22df~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_5d18ba7d9dcc4b06906f852f687c22df~mv2.png)
World Settings
Window > World Settings
![](https://static.wixstatic.com/media/204c38_5098ea7b8556484e91c15d8878d31f64~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_5098ea7b8556484e91c15d8878d31f64~mv2.png)
Game mode
GameMode Override: GM_Car
![](https://static.wixstatic.com/media/204c38_a337928e798b420eb6d4b5c3d04c6634~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_a337928e798b420eb6d4b5c3d04c6634~mv2.png)
Play Game result
![](https://static.wixstatic.com/media/204c38_f1c10a94ba71419eb2cacb4ba7f2a1ba~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_f1c10a94ba71419eb2cacb4ba7f2a1ba~mv2.png)
Car Physic
![](https://static.wixstatic.com/media/204c38_4be7f9089f8b4f6f9af7ea438e58e3de~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_4be7f9089f8b4f6f9af7ea438e58e3de~mv2.png)
Select physic and delete
Because the default physic shape is not fit for the car
![](https://static.wixstatic.com/media/204c38_b5760bad2b0949aaad123c8c3f1074dc~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_b5760bad2b0949aaad123c8c3f1074dc~mv2.png)
Select wheel bones > Primitive shape: Sphere >Add bodies
![](https://static.wixstatic.com/media/204c38_a4f533479b8b4c38bde4caa9c8882da6~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_a4f533479b8b4c38bde4caa9c8882da6~mv2.png)
Select Root bone > Primitive shape: Single convex Hull >Add bodies
![](https://static.wixstatic.com/media/204c38_242da1937ab444f89366b958a6914d34~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_242da1937ab444f89366b958a6914d34~mv2.png)
Control camera rotate
Open BP_Car
![](https://static.wixstatic.com/media/204c38_dfe686d8503b409792a1bf4181e1a569~mv2.png/v1/fill/w_498,h_270,al_c,q_85,enc_auto/204c38_dfe686d8503b409792a1bf4181e1a569~mv2.png)
Using mouse to rotate camera
Mouse X Axis Value ---> Delta Rotation Z
Mouse Y Axis Value ---> Delta Rotate Y
![](https://static.wixstatic.com/media/204c38_623b73cc344e4e1b8a44205dbeab4b6a~mv2.png/v1/fill/w_554,h_365,al_c,q_85,enc_auto/204c38_623b73cc344e4e1b8a44205dbeab4b6a~mv2.png)
Play Game Result:
Discover the car is not on the ground.
![](https://static.wixstatic.com/media/204c38_3185aab65602423d830a453b98ffda6b~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_3185aab65602423d830a453b98ffda6b~mv2.png)
Go to BP_FrontWheel and BP_RearWheel change “ wheel radius ”
Wheel Radius: 20
![](https://static.wixstatic.com/media/204c38_91d7c5d1200445daacb50e710a611171~mv2.png/v1/fill/w_547,h_276,al_c,q_85,enc_auto/204c38_91d7c5d1200445daacb50e710a611171~mv2.png)
Result:
![](https://static.wixstatic.com/media/204c38_e2d637ffcd3744378e41c457b755d838~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_e2d637ffcd3744378e41c457b755d838~mv2.png)
Vehicle Movement
![](https://static.wixstatic.com/media/204c38_3701235b62404a64bc6ee9c85c532c7c~mv2.png/v1/fill/w_553,h_314,al_c,q_85,enc_auto/204c38_3701235b62404a64bc6ee9c85c532c7c~mv2.png)
Input Action
Project settings
![](https://static.wixstatic.com/media/204c38_483da6eba4bb40eaa75ab0f91bd0666e~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_483da6eba4bb40eaa75ab0f91bd0666e~mv2.png)
Go to Engine - Input
![](https://static.wixstatic.com/media/204c38_2da8506f85fe4c80a923255665f98a58~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_2da8506f85fe4c80a923255665f98a58~mv2.png)
Action Mappings: HandBrake --> Spacebar
Axis Mappings:
Thottle --> W
Brake --> S
Steering --> A , D
![](https://static.wixstatic.com/media/204c38_625f74f5e47a4cb7b565f4d9424ac869~mv2.png/v1/fill/w_553,h_300,al_c,q_85,enc_auto/204c38_625f74f5e47a4cb7b565f4d9424ac869~mv2.png)
Go to BP_Car
Each InputAsix to connect
Vehicle Movement
![](https://static.wixstatic.com/media/204c38_1342c123aa8b4653a3da958448c0fa6b~mv2.png/v1/fill/w_553,h_302,al_c,q_85,enc_auto/204c38_1342c123aa8b4653a3da958448c0fa6b~mv2.png)
Animaton
Obtain the behaviors we want for our vehicle.
Select car skeleton > right click mouse > Create > Anim Blueprint
![](https://static.wixstatic.com/media/204c38_54734ac9bfea4fef939df9ecd81fd2b6~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_54734ac9bfea4fef939df9ecd81fd2b6~mv2.png)
Opne AnimBP > Class Settings > class options > Parent Class : Vehicle Animation Instance
![](https://static.wixstatic.com/media/204c38_3aa0b4721ede4d8e8839716c1a1447c1~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_3aa0b4721ede4d8e8839716c1a1447c1~mv2.png)
Mesh Space Ref Pose: this is used to return the mesh space reference pose for our skeletal mesh in the Animation Blueprint
Wheel Controller : offloading a lot of the work in creating these types of animations, you can use the Wheel Controller Node to drive the animations.
![](https://static.wixstatic.com/media/204c38_420a2b71c72c41d496937fb7ede5e243~mv2.png/v1/fill/w_554,h_276,al_c,q_85,enc_auto/204c38_420a2b71c72c41d496937fb7ede5e243~mv2.png)
GO to BP_Car
Select Mesh > Animation > Anim Class : AB_Car
![](https://static.wixstatic.com/media/204c38_359fefe3f52048719c2738da2a71241c~mv2.png/v1/fill/w_553,h_312,al_c,q_85,enc_auto/204c38_359fefe3f52048719c2738da2a71241c~mv2.png)
Play game
Result
![](https://static.wixstatic.com/media/204c38_929185c7aacb42a8be4fe9e1ac3be576~mv2.png/v1/fill/w_452,h_276,al_c,q_85,enc_auto/204c38_929185c7aacb42a8be4fe9e1ac3be576~mv2.png)
Youtube Tutorial:
教學專案和文件下載 / Full Project and Document Download:
Sketchfab - Car Scene:
How to Set up Vehicles Unreal Engine 5.0
贊助 / Support Me
BuyMeAcoffee: https://www.buymeacoffee.com/lutopialab
Patreon: https://www.patreon.com/LutopiaLab/
#ChaosPhysics #car #UnrealEngine5 #教學 #虛幻引擎 #車子#Vehicle #Drive
Comments