Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Deprecated RaycastFilterType #78

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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