Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Zone/ZoneController/Tracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,11 @@ function Tracker:update()

-- This creates the whitelist so that
self.whitelistParams = OverlapParams.new()
self.whitelistParams.FilterType = Enum.RaycastFilterType.Whitelist
self.whitelistParams.FilterType = Enum.RaycastFilterType.Include
self.whitelistParams.MaxParts = #self.parts
self.whitelistParams.FilterDescendantsInstances = self.parts
end



return Tracker
return Tracker
6 changes: 3 additions & 3 deletions src/Zone/ZoneController/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ function ZoneController.getTouchingZones(item, onlyActiveZones, recommendedDetec
local partToZoneDict = (onlyActiveZones and activePartToZone) or allPartToZone

local boundParams = OverlapParams.new()
boundParams.FilterType = Enum.RaycastFilterType.Whitelist
boundParams.FilterType = Enum.RaycastFilterType.Include
boundParams.MaxParts = #partsTable
boundParams.FilterDescendantsInstances = partsTable

Expand Down Expand Up @@ -442,7 +442,7 @@ function ZoneController.getTouchingZones(item, onlyActiveZones, recommendedDetec
if totalRemainingBoundParts > 0 then

local preciseParams = OverlapParams.new()
preciseParams.FilterType = Enum.RaycastFilterType.Whitelist
preciseParams.FilterType = Enum.RaycastFilterType.Include
preciseParams.MaxParts = totalRemainingBoundParts
preciseParams.FilterDescendantsInstances = boundPartsThatRequirePreciseChecks

Expand Down Expand Up @@ -531,4 +531,4 @@ end



return ZoneController
return ZoneController