diff --git a/Docs/tuto_A_add_vehicle.md b/Docs/tuto_A_add_vehicle.md index d772dca6d..b24e6e2ce 100644 --- a/Docs/tuto_A_add_vehicle.md +++ b/Docs/tuto_A_add_vehicle.md @@ -21,7 +21,7 @@ __The positions of the skeleton bones can be changed but any other manipulation ### Bind and model the vehicle -This section details the minimum requirements in the modeling stage of your vehicle to make sure it can be used successfully in CARLA. The process involves binding the skeleton correctly to the base and wheels of the vehicle, creating Physical Asset and Collision meshes, and exporting to the correct format. +This section details the minimum requirements in the modeling stage of your vehicle to make sure it can be used successfully in CARLA. The process involves binding the skeleton correctly to the base and wheels of the vehicle, creating Physical Asset and raycast sensor meshes, and exporting to the correct format. __1. Import the base skeleton.__ @@ -84,11 +84,11 @@ The Physical Asset mesh should be exported as a separate `.fbx` file. The final Export the final mesh as an `.fbx` file with the name `SMC_.fbx`. -__5. Create the Collision mesh.__ +__5. Create the mesh for the raycast sensor.__ -The Collision mesh allows Unreal Engine to identify the vehicle's shape and use that to calculate collisions. This mesh should have a slightly more defined geometry than the Physical Asset mesh. +The raycast sensor mesh allows Unreal Engine to identify the vehicle's shape and use that to calculate collisions for the raycast sensor which allows the RADAR and LIDAR sensors to detect objects. This mesh should have a slightly more defined geometry than the Physical Asset mesh. -Consider the following points when creating the Collision mesh: +Consider the following points when creating the raycast sensor mesh: - The mesh should cover all aspects of the vehicle, including wheels, side mirrors, and grilles. - The wheels should be cylinders of no more than 16 loops. @@ -126,15 +126,16 @@ In the dialogue box that pops up: The Skeletal Mesh will appear along with two new files, `_PhysicsAssets` and `_Skeleton`. -__3. Set the Collision mesh.__ +__3. Set the raycast sensor mesh.__ >1. Open `_PhysicsAssets` from the **_Content Browser_**. - Right-click on the `Vehicle_Base` mesh in the **_Skeleton Tree_** panel and go to **_Copy Collision from StaticMesh_**. -- Search for and select your `SM_sc_` file. You should see the outline of the Collision mesh appear in the viewport. +- Search for and select your `SM_sc_` file. You should see the outline of the raycast sensor mesh appear in the viewport. - Delete the default capsule shape from the `Vehicle_Base`. - Select all the wheels: - Go to the **_Tools_** panel and change the **_Primitive Type_** to `Sphere`. - Go to the **_Details_** panel and change **_Physics Type_** to `Kinematic`. + - Set **_Linear Damping_** to `0`. This will eliminate any extra friction on the wheels. - Enable **_Simulation Generates Hit Event_** for all meshes. - Click **_Re-generate Bodies_**. - Adjust the wheel sphere to the size of the wheel. @@ -193,7 +194,7 @@ __8. Configure vehicle blueprint.__ - In the **_Details_** panel, go to **_Skeletal Mesh_** and search for and select the base skeleton file of your vehicle (located in the `Carla/Static/Vehicles/4Wheeled/` folder). - Go to **_Anim Class_** in the **_Details_** panel. Search for and select your `AnimBP_` file. - In the **_Components_** panel, select **_Custom Collision (Inherited)_**. -- Select **_Static Mesh_** in the **_Details_** panel and search for your `SM_sc_` collision mesh. +- Select **_Static Mesh_** in the **_Details_** panel and search for your `SM_sc_` raycast sensor mesh. - In the **_Components_** panel, select **_VehicleMovement (MovementComp) (Inherited)_**. - In the **_Details_** panel, search for `wheel`. You will find settings for each of the wheels. For each one, click on **_Wheel Class_** and search for the `BP__` file that corresponds to the correct wheel position.