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. |
|
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?) |
|
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. |
|
Awesome, I'll play with this! |
|
Would you please provide a more detailed tutorial on how add a custom mesh vehicle to AirSim? Thank you! |
|
Hi, I would also be happy to have more infos on how to use a custom mesh car/vehicle. Thank you |
|
May be this works for you, I will try it out as soon as I find the time: |
|
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, |
|
Fernando Damasio (@fernandodamasio) |
Hi Benjamin Lange (@benjamin-lange) 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, |
|
Fernando Damasio (@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. |
|
Hi Benjamin Lange (@benjamin-lange) Thank you very much for your quick response and also congrats for the Airsim project! Regards, |
|
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! |
|
Karan Parikh (@karanparikh91), have you tried using the "WASD" keys to move the vehicle? |
|
Benjamin Lange (@benjamin-lange) thanks for your reply. Turns out the car was not exported properly from Blender. I've got things working correctly now. |
|
Hi Benjamin Lange (@benjamin-lange) I have my own own project and my own vehicle model with the following skeleton [see image]. I have created a child blueprint class from AIRSIM carpawn and selected a mesh of my own vehicle. What else I should do in addition to that to use my vehicle ? If I try to play. Iam getting the following error. [image] My json settings are follows. { |
|
Hello Benjamin Lange (@benjamin-lange), Karan Parikh (@karanparikh91) Mitchell Spryn (@mitchellspryn) Fernando Damasio (@fernandodamasio) > I am having difficulties adding custom vehicle into my own project. Here's what I have done so far: Followed same steps as Karan Parikh (@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! |
|
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 ? |




Uh oh!
There was an error while loading. Please reload this page.
Looking to change the specs of the default car model--is there anything addressing this in the documentation?
All reactions