putting a 2D box around an object?

Blitz3D Forums/Blitz3D Programming/putting a 2D box around an object?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What I would do is: After loading the mesh I would parse all Vertices of the mesh and store Min xyz and max xyz, These can be used to create 8 Pivots that are representing a Box that completely and exactly covers the mesh. Then I'd parent the pivots to the mesh, so any further scaling will affect the pivot loactions too.

That's what I do too, or rather I make a transparent cube parented to the entity, and make only the cube pickable. That way I control exactly how the entitybox looks. I also make the cubes slightly larger than the objects, but that's another story.