VehiclePhyModeler is the first tool in the CarCustomizer tool set, and allows modification of the hitbox and wheels of a Trackmania car.
- Drag a
VehiclePhyModel.Gbxfile onto the executable, the hitbox will be extracted to a human-readable JSON file. - Edit the JSON, or simply keep everything as it is.
- Drag the JSON back onto the executable, together with another
VehiclePhyModel.Gbxwhich will work as a base for the output file. Feel free to mix environments like in this example, where I combine the Lagoon hitbox with Stadium handling! ( => JSON: hitbox, Gbx: handling)
The tool is EXTREMELY limited at the moment.
- It will only work with
VehiclePhyModel.Gbxfiles which include theShape.Gbxfile, some files of the TM United cars come with this file externally, which is not yet supported. - The
Typevalue of the collision elements can only be set toEllipsoid, which is a sphere with a radius of1.0that gets scaled on each axis by the values given inParameters. This should be sufficient for nearly every car that exists or which you would like to create, but might change in the future. - The
Rotationvalue measures mathematical rotation with the help of quaternions. I recommend Online converters to get the correct values from Euler angles or similar. - Simply extracting and reimporting the hitbox of an original TM vehicle will likely break "Press Forward" maps due to floating point precision errors, however driving the car normally should basically feel no different to before. This will probably not change until after a major revamp of the tool set.
Oh boy. It won't be a simple drag 'n' drop, as I had to modify the GBX.NET library as well. You will find the file with the source. For building I use .net 8.0