#How performance heavy will this be?
1 messages · Page 1 of 1 (latest)
if Degree then
print(Degree)
if horizontalDistance > 2 then
local forward = rootPart.CFrame.LookVector
local toTarget = (targetPos - attackerPos).Unit
local maxAngle = math.rad(Degree)
if forward:Dot(toTarget) < math.cos(maxAngle) then
print("Rejected: Target outside front-facing cone (dot: " .. forward:Dot(toTarget) .. ")")
return false
end
end
Wdym 20 times per player
i do a magnitude check 20 times per player along with this dot product
If that's the case then that's a relief
it seems roblox servers are a lot more capable than before
?
** You are now Level 5! **
I was concerned because i dont want the hitbox to take the majority of the server's resources
Try not the worry about the performance of a game too much
I was a tester for a game that used magnitude hitboxes and it was laggy due to the # of calls per frame
That could not have been because of the hitboxes
Most definitely another reason