Download

Aiming Deadzone?

So Ive hit a snag in the project Im working on.

I am developing a 3rd person locomotion system, and would like to have an aiming deadzone for the camera. I need the capsule to rotate toward the input vector, which Ive completed, but also not be able to rotate past a certain point relative to the camera. I need the capsule to rotate with the camera only when the difference between the camera direction and capsule rotation is greater than 90, so the camera essentially pushes the capsule rotation along when the rotation limit is reached. The capsule rotation would then have 90 degrees of freedom on both sides of the camera direction.

If anybody knows how to go about achieving something like this it would be greatly appreciated!

Thanks!