Posted January 27, 2022 by kindeyegames
Add x, y bounding box based on the model x,y size. In the editor, the bounding box will resize based on the model scale and orientation. The y origin is at the bottom of the bounding box, the x origin is in the middle of the bounding box.
During runtime, the initial bounding box is set on the creation of the 3DObject. To reduce CPU performance requirements, the bounding box during runtime will only be updated when the update bounding box action is called.
In general, I still recommend collisions, etc. be based on another sprite or object and the 3DObject position tied to the other sprite / object for collisions, etc.