Camera Collision With Vehicle

  1. What do you want to achieve?
    I would like for the camera to not collide with the ladder of the tower truck. While still being able to collide with the environment.

  2. What is the issue?
    So when a player is navigating their camera around it will spaz out making the driving mechanic of the game unplayable.

  3. What solutions have you thought of so far?
    I’ve tried looking around on the devforum but I cant find a way to fix this issue without having to make the camera non collide all together (Meaning you could just look through walls) or having to make the part non collide. I am wondering if there is a median in between answer.


This might help

This looks like I would have to add each individual part to the camera list. There are ~400 parts and I would prefer not having to have six seats do that. I’m wondering if there is just a built in function to ROBLOX that would make it so if you are sitting in a seat. Anything in X model will not collide with your camera.

You could use GetChildren and check if the child is a part then add it to a table using script

Unfortunately that isn’t practical for what I would have to be doing, there are multiple models in a model. I could use Descendants but that would cause an unnecessary lag spike for the player. Ive looked into DevCameraOcclusionMode but it would just make parts invisible and make all models invisible instead of just the vehicle.

set your camerasubject to the car model when the player gets in, and set the minimum zoom distance to a value that stops them from going inside the car, then when they get out, set the minimum zoom distance back to its default value, and the camerasubject back to the players characters humanoid.

This is very doable, I am probably going with this. Thank you.