Skip to content

1.1.0

Choose a tag to compare

@athar-adv athar-adv released this 28 Feb 14:01
· 11 commits to main since this release
  • Added Zone:getShapeWithPoint(point: vector) -> ShapeInstance? and Zone:getShapeWithBox(cframe: CFrame, size: vector) -> ShapeInstance? for people who wish to get the corresponding shape a point/box is inside of.
  • ZoneItems passed to ZoneListener listener callbacks now have a special shape: ShapeInstance? field pointing to what ShapeInstance the item has entered/exited. (This field will be nil during initial callback call in the case of ZoneListener:observe(), but also when the listener unsubscribes from that zone, when the item itself is being destroyed, parented to nil, etc.)
  • Listener callbacks of ZoneListeners will now error if they yield
  • Added ShapeInstance.metadata: {[string]: any} field
  • Zone:rebuild() now uses Bvh.updateBvh() instead of Bvh.createBvh(). This change comes because shapeInst is now a field stored inside leaf BvhNodes and thus it is now possible to update the corresponding branches correctly using comparison.