Add x,y bounding box size based on model size


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.

Files

3DObject-2-12-0.c3addon 48 kB
Jan 27, 2022

Get Construct 3 3DObject Plugin

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.