Browse Search Popular Register Upload Rules User list Login:
Search:
[LAG?] Bounding Box Creator for Polygons

Image:
screenshot of the scene

Author: CPJchute

Group: Default

Filesize: 11.16 kB

Date added: 2024-06-17

Rating: 5.4

Downloads: 544

Views: 184

Comments: 5

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

The object in this scene is a polygon, and this code ONLY WORKS FOR POLYGONS.

This scene can create a bounding box for any polygon, as long as it is very simple. (This limit exists because the code uses normal for loops.)
This works by finding the furthest +X, -X, +Y, and -Y points, then using those points to make another polygon in the shape of a box.
This could be a bit useful for mouseOver checks on polygons or something.

Another scene coming a bit after this!

Edit: Positioning doesn't work well for concave polygons.
Last edited at 2024/06/19 13:42:04 by CPJchute
Please log in to rate this scene
edit
Similar scenes
Title: Regular Polygon Creator
Rating: 5
Filesize: 29.04 kB
Downloads: 85
Comments: 0
Ratings: 1
Date added: 2024/07/13 23:06:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Metralhadora 10
Rating: 6.6
Filesize: 0.87 MB
Downloads: 693
Comments: 1
Ratings: 5
Date added: 2008/10/19 01:23:29
Made with: Phun
Rating: rated 6.6
download
Title: SLEA(Special Laser Exploding Armore)[Kilinich's Smoke]
Rating: 5
Filesize: 4.09 kB
Downloads: 544
Comments: 1
Ratings: 1
Date added: 2012/12/06 23:36:12
Made with: Algodoo v2.0.2
Rating: rated 5
download
Title: need help(read desc.)
Rating: 5
Filesize: 61.07 kB
Downloads: 728
Comments: 1
Ratings: 1
Date added: 2011/06/04 23:30:16
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Pose Creator
Rating: 5
Filesize: 25.79 kB
Downloads: 391
Comments: 0
Ratings: 1
Date added: 2025/08/17 12:45:41
Made with: Algodoo v2.2.4
Rating: rated 5
download
Title: Karate Kid
Rating: 6.1111
Filesize: 52.96 kB
Downloads: 972
Comments: 1
Ratings: 3
Date added: 2010/02/11 06:41:21
Made with: Phun
Rating: rated 6.1
download
Wow, your coding ability is quite impressive. Nice job! _o_
You could use the scaling tool to also see the bounding box for any shape, but this is cool too
Party box
Amazing script to generate bounding box :tup:
@Nugget123 You can't really use that in scripting, can you?