I'm going to be importing quite a few purchased 3d models and they will need a collision box assigned to them. It would be great if i could do it in gdscript rather than manually. The orange bounding box looks perfect, using code can I do something like get the largest dimensions of the model and create a collision box based on that? i think basically this is what the orange box is, in terms of size.
Create collision node based on orange bounding box?
You mean the AABB?
I have spent some time reading about the AABB but honestly it makes little sense and i'm lost as to where to begin to use it...
- Edited
Well, the axis-aligned bounding-box size property seems like it would be what you are after. Or alternatively...
ScoutMoreOften can I do something like get the largest dimensions of the model
https://docs.godotengine.org/en/stable/classes/class_aabb.html#class-aabb-method-get-longest-axis