Limit Camera Rotation 180˚, Rotate Actor once Limit is Reached

So what I’ve been trying to do is adjust the camera limits based on the actor rotation, then once the limits are hit rotate the actor. Spent hours trying to work it out any help would be greatly appreciated. Very new to UE Blueprints.

edit: With what i have given it is very jumpy when rotation hits the 90/-90 limit.

I have mine set up slightly different, for replication purposes. Without seeing how yours reacts I can’t give you full advice, but firstly you want an RInterp in there so you smooth the Set Actor Rotation. You need Delta time for this and can set the Interp speed to about 3-7. Despite me doing this mine still rattles.

I also don’t use Set Actor Rotation but Add Actor Rotation I believe.

So you are finding the difference between Actor Rotation and Controller rotation getting the Delta taking just the Yaw Input make into Rotator then into a Rinterp then add the Rotator difference to Actor rotation.

See how you get on with the Rinterp and AddActorRotation nodes.

Check out the VR Template in the Community Tools & Content forum - it has a really slick implementation of this type of “keyhole” system.

I spend way too long trying to make it work when I first started using UE4, before just ripping the system from the VR Template.

Thanks n00 (now I feel bad for not typing your whole name, Uh ohh now I’ve typed more digits than your name so I should of just typed it)

Imma check this when I get home been looking for a Smoother solution.

Here is the link CodeZero.