Commit graph

2 commits

Author SHA1 Message Date
Michael Cook (mackal)
a3ae35e715 Add an add(x, y) function to AA box lua class
This can be used like:
tether_box = box() -- needs to be default in this case
-- calculate minimum AA box from four corners of room
-- can be as many corners as needed to make easy for geometry of room,
-- but at least 3 would be required
tether_box:add(831.11, -16.90)
tether_box:add(752.95, -16.90)
tether_box:add(752.90, -159.11)
tether_box:add(831.10, -159.11)
2018-03-25 18:42:42 -04:00
Michael Cook (mackal)
cc71ed95de Add lua modula aa_box
This is just a simple axis aligned bounding box to do some
rectangular tethering/leashing instead of radius based
2015-07-24 18:04:22 -04:00