As a Roblox developer, it is currently too hard to make a CanCollide object follow the player without it occasionally crossing the path of the camera and causing it to jump forward. This is something I need to do for the project I’m working on and the two solutions I’ve been proposed are both very hacky and time consuming.
It would be great to have finer control over which objects are able to block the camera. Maybe something involving collision groups?
If Roblox is able to address this issue, it would improve my development experience because I’d be able to stop my player’s camera from jumping around.
Hacky workarounds
- Create two versions of the object that exist simultaneously, one that’s invisible with cancollide on and one that’s visible with cancollide off, then weld the visible one to the invisible one.
- Fork the camera scripts and change the raycasting logic.