index about trunk_godot

me made a toolkit for making vehicles in trenchbroom and godot (ft. func_godot & gevp & gdscript @tools !!)

it's a script i made for constructing vehicles in trenchbroom and use them in my game in godot engine. you can see its demo all over the page (i hope the videos are loading properly).

not released anywhere yet!! this page will be updated if/when i post the code on github. i'd need to isolate the code from my game project, so it can be uploaded separately.

create vehicle geometry in trenchbroom normally, like you'd make maps in tb

create wheel geometry anywhere in the same .map file

add a pivot for the script to align the wheel model along it

drag&drop wheels

select all brushes and entities the wheel consists of, including the pivot, and create a group called 'wheel_model_[modelname]'

on map build, res://trenchbroom/models/wheel/[modelname].glb and res://trenchbroom/map/wheel/[modelname].map will be generated for further use

if hot-reload is on, vehicle's map is built on .map save

now the new model is available by its name, aka model_id

change 'model_id' property of the wheel entities, optionally set 'tire_radius'