I recently came across this:
Does anyone know if zone plus should no longer be used? If so, what are the alternatives? Thanks ![]()
I recently came across this:
Does anyone know if zone plus should no longer be used? If so, what are the alternatives? Thanks ![]()
Yes, I checked that out, but it seems i am unable to access it when clicking the tool box link. It says that I âneed permissionâ Aditionally, I have already implemented many things using zone plusâI am sure the switch to simple zone would be rather fastâthat said, is it confirmed that zone plus is broken now?
canât confirm that itâs âbrokenâ, but I can say that for most use cases zoneplus can definitely be overkill
if all you need is to determine if a player is within a volume, one may not even need spatial query API.
I agree with @arbitiu , it really depends on how you use things. ZonePlus is likely running every frame when it likely does not need to. Also it is likely not using parallel processing if the server is lagging this much.
local function is_in_box(size, cframe)
cframe = cframe:Inverse()
size = size/2
return function(pos)
pos = cframe * pos
return not ((pos.X >= size.X) or (pos.X <= -size.X)
or (pos.Y >= size.Y) or (pos.Y <= -size.Y)
or (pos.Z >= size.Z) or (pos.Z <= -size.Z)
);
end
end
This is the code to check if a position is inside of a cframe and size.
My game is way more optimized nowâthanks! Sorry for the late reply, it took me a while to replace all the zones.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.