#Finding if point is within surface-light like area
36 messages · Page 1 of 1 (latest)
I shpuldve added this, however you are able to edit the angle pf the box in radians. The box isnt a literal object nor mesh
Think of a surface light, and detecting a point within the surface light.
pretty sure region3 is deprecated
just use the point.Position.[Axis] > Box.Position.[Axis] - Box.Size.[Axis] technique for all the axis
all the workspace region3 methods are deprecated
it is replaced with workspace:GetPartsInPart() workspace:GetPartBoundsInBox() workspace:GetPartBoundsInSphere()
would that work with a custom angle though? The box protrudes like a surface light
Like the red/yellow box, you can change the angle of it
oh no
wait whst
that custom angle is just the perspective
? Its like a surface light
I shouldve sent that picture first, mb
ok
well the shape of the surface light is called as a frustum
so google "check if point in frustum"
and try to solve it yourself
ah like fov
ye
there is a thing called frustum culling also
which removes objects if their not in the view frustum
Oh i think ive heard of that, like “unloads” anything not in view. performance thing