How do I get wheels from the .dae file? I am making my own vehicle and instead of making wheels I want to just use the wheels that are already created in that file, where is that file located and what line of code will get the wheels to show up on my car which is located in Documents/beamngdrive/mods/vehciles. or If the above is not possible I do have my own wheels that i can use, only problem i am having is texturing the wheels since each wheel is a separate object with different names will I have to declare each its own PNG (picture) file? or is there a way to use one PNG file for all the wheels?
Wheels are in wheels.dae in common.zip. Anything in common.zip is accessible by all vehicles. Simply use the mesh name for the wheel you want as if it was in your own dae file, the common zip and multi-dae takes care of the rest.
Err you probably shouldn't if it's anything you want to release. You can make multiple DAE files in your own projects if you need to do the same sort of thing. explorer.dae explorer_wheels.dae For example.
ok Ill use the ones in there for now, but what the exact line of code for it? currently I have my own wheels using this line "flexbodies": [ ["mesh", "[group]:", "nonFlexMaterials"], ["Ford_body", ["Ford_body_g"]], ["wheelFL", ["wheel_FL_g"]], ["wheelFR", ["wheel_FR_g"]], ["wheelRL", ["wheel_RL_g"]], ["wheelRR", ["wheel_RR_g"]], do I replace "wheel_FL_g with a wheel name from the wheel.dae file? like this? "flexbodies": [ ["mesh", "[group]:", "nonFlexMaterials"], ["Ford_body", ["Ford_body_g"]], ["tire_01b_15x7_27", ["wheel_FL_g"]], ["wheelFR", ["wheel_FR_g"]], ["wheelRL", ["wheel_RL_g"]], ["wheelRR", ["wheel_RR_g"]], --EDIT--- the above worked when I put the wheel.DAE into my project folder but now this has happened: the wheel is in the center of my car. How do i get it to the right area?
Look at the official vehicles. For example the super: ["super_wheel_16x10", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.8141, "y":1.25, "z":0.31}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1, "y":1, "z":1}}], and ["tire_01a_16x10_25", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.8141, "y":1.25, "z":0.31}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}], I only post the 2nd for completenesses sake as the official vehicles have seperate wheel and tyre. All wheel meshes are positioned at 0,0,0. Multidae allows repositioning of meshes. So thats what the vehicles do, simply change the position and rotation to force the wheel into the correct spot. As for replacing wheel_FL_g, thats the deform group not the mesh name... you would replace wheelFL
Cheers thanks! I'll mess around with these setting for a while and become more familiar with them. --EDIT-- To better understand things I guess i should ask this question: How is beamng finding the referenced wheel mesh? is it looking in any .DAE file from my project folder until it finds the referenced wheel mesh? or does it already know exactly where to look for it? (middle-ware programming)