Rigged Hands Disappear

Hey, guys! I have a strange problem. I have a first person weapon model, where the hands are rigged and the weapon is not. I parented the model to the camera, attatched my weapon script to it, set the animations and gave it a go. Everything was perfect, except the fact that the hands just disappear at certain pitch and yaw of the camera. What could be causing this and is it because they have bones or the problem is somewhere else?

1 Like

Maybe the Near clip of the camera that is too high ? Set it even lower that it currently is.

No, that was my first guess, but it’s only the hands, and the near clip of the camera is really small. They just blink in and out…

Hey Metal Head (nice model :slight_smile: ); Have you tried unparenting the model and having a script set its position in Late Update?

I know this might not be the ideal solution, but I’ve run into some strange problems with parenting. If this is not satisfactory for your final solution, it may at least provide some diagnostic information which may be helpful.

Thanks, I’ll give it a try! The only problem would be that it will take more time to set the weapon’s position right, rather than that, nothng else stops me from trying.
By the way, two things I noticed: Sometimes when I run the preview, everything’s fine, but sometimes it isn’t. And the second one is that my hand disappear in the game view, but in the editor there are no problems.

I had this problem with animated hands before. I had to go ahead and enable the Update When Offscreen in the skinned mesh renderer.

It looked like a bug with the way unity performs visiblity checking on the skinned geometry.

5 Likes

Thanks for this, would never have found this otherwise.