How do I use my own car model? #3300
Replies: 18 comments 5 replies
-
If you're just looking to change the physics and are OK with keeping the same visual model, the simplest thing would be to edit the parameters of the included uasset file for the SUV (in AirSim Content/VehicleAdv/SUV/) If you have a completely custom mesh, then you can set it up like any other wheeled vehicle, but instead parent it to CarPawn. And then change the CarPawn constructor to point to the correct assets. |
Beta Was this translation helpful? Give feedback.
-
Thanks! Yup, just looking to change the physics, don't care about the appearance of the geo for now. Have you got anything there that would affect the throttle command? (Is there a drivetrain model?) |
Beta Was this translation helpful? Give feedback.
-
For throttle, there are a few things you can try. First, open the blueprint SuvCarPawn, and navigate to the VehicleMovement component: There are a few relevant parameters you can play with:
There are drivetrain / transmission models, but those usually affect handling (i.e. turning) more than acceleration. Do keep in mind that there will need to be some manual tuning; I have found that copy-pasting actual data from real-world tests done on car components (e.g. torque curves from engines) usually doesn't give very good results. |
Beta Was this translation helpful? Give feedback.
-
Awesome, I'll play with this! |
Beta Was this translation helpful? Give feedback.
-
Would you please provide a more detailed tutorial on how add a custom mesh vehicle to AirSim? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi, I would also be happy to have more infos on how to use a custom mesh car/vehicle. Thank you |
Beta Was this translation helpful? Give feedback.
-
May be this works for you, I will try it out as soon as I find the time: |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I´m also having difficulties to change the mesh of the car. Just the mesh. Anyone knows how to do it? I tried different approaches like changing SpawnCar Path to a new blueprint and also trying to change only the Skeletal Mesh to a new Mesh. If someone has already done this, could you exemplify how to do it? Best regards, |
Beta Was this translation helpful? Give feedback.
-
@fernandodamasio |
Beta Was this translation helpful? Give feedback.
-
I tried to change only the mesh inside the cars' blueprint. It didn´t work. So, I guess I need another car to change it? I mean, I can't change just the mesh / appearance of the Airsim car. Appreciate your help. Best regards, |
Beta Was this translation helpful? Give feedback.
-
@fernandodamasio , your are welcome.
I recommend leaving the default blueprint alone. If so then you might break the animations associated with the mesh which could cause more problems.
Yes, I recommend that. At least copy the original Blueprint located in project_name\Plugins\AirSim\Content\VehicleAdv\SUV and rename it before you experiment on it. ;-) For your experiments with custom vehicle Blueprints in Airsim have a look into this free asset from the marktplace or simply use the car model from the Blueprint vehicle template. To get the vehicle template create a new project using the Blueprint vehicle template and then extract the Blueprint from it. Then use the pawn paths in the settings to setup the vehicle Blueprint for Airsim. I think there is a way to import the vehicle template content into your current project without creating a new project as well, but I do not know the details for this procedure. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your quick response and also congrats for the Airsim project! Regards, |
Beta Was this translation helpful? Give feedback.
-
Hello! Here's what I have done so far:
When I hit play, I do see my new car show up instead of the default old one. However, the car doesn't seem to respond to any input when I hit the arrow keys. Am I missing a step or something else? Thanks! |
Beta Was this translation helpful? Give feedback.
-
@karanparikh91, have you tried using the "WASD" keys to move the vehicle? |
Beta Was this translation helpful? Give feedback.
-
@benjamin-lange thanks for your reply. Turns out the car was not exported properly from Blender. I've got things working correctly now. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello @benjamin-lange, @karanparikh91 @mitchellspryn @fernandodamasio > I am having difficulties adding custom vehicle into my own project. Here's what I have done so far: Followed same steps as @karanparikh91 I have created my own project
When I hit play, I do see my new car flying from somewhere and dropping down (even though the player start is on the floor) But it doesn't seem to respond to any input when I hit the arrow keys. Am I missing a step or something else? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello, does anyone knows how to modify the little blue vehicule's (\AirSim\Content\VehicleAdv\Vehicle) size ? Was I in the good way or there's an other mean to resize the car ? |
Beta Was this translation helpful? Give feedback.
-
Looking to change the specs of the default car model--is there anything addressing this in the documentation?
Beta Was this translation helpful? Give feedback.
All reactions