Currently, in my game I have a character rig which I weld to the player’s HumanoidRootPart. However, whenever a part in the custom character hits a wall too fast, (as well as a few other situations which I can’t replicate), all the bricks in the custom and regular character disappear, and a massive shadow appears.
When cancollide is disabled on them, I don’t get that issue from looking down into walls quickly. However, the player can now stick his head through walls. As well, the issue still happens, just for unknown reasons instead of collision.
Does the head collision issue still happen even with Collision on? I’ve noticed it doesn’t stop the issue on my rigs but it may be different with yours. Sorry for the off-topic.
Ah damn I was hoping you had a fix for it. I’ve had this idea of drawing a ray from behind the camera forward and if it collides with a wall or something it would maybe move the character back or tilt the spine back a bit or something.
Couldn’t you just put an invisible hitbox on the head that’s larger than the head? That way if it clipped into the wall, the camera would still not be at the wall.
The disappear and shadow thing happens if the CFrame offset in a weld or motor gets set to NaN. I experienced it when I had a divide-by-zero component of Angles.