Lokispades
(Lokispades)
January 9, 2024, 1:44pm
#1
Haven’t seen anything on the forum about this and I think this will be a very good use for a lot of developers.
azqjanna
(azqjanna)
January 9, 2024, 2:29pm
#2
By far the easiest way is to attach a camera to an invisible ball that you fly around with the same controls. I have tried to do this with raycasting and it’s just a huge pain.
acz0r
(acz0r)
January 9, 2024, 2:56pm
#3
I think I had a similar issue in the past, this might help:
An easy way to change this is to copy the PlayerModule and change the “canOcclude” function in the “Popper” module script located in PlayerModule > CameraModule > ZoomController
local function canOcclude(part)
-- Occluders must be:
-- 1. Opaque
-- 2. Interactable
-- 3. Not in the same assembly as the subject
return
getTotalTransparency(part) < 0.25 and
part.CanCollide and
subjectRoot ~= (part:GetRootPart() or part) and
not part:IsA("TrussPart")
end
With this you have full control over which parts should or should not occlude the camera, hope this helps!
2 Likes