Camera rigid, I think I know why, better solution available?

Hi all,

Below is BP_Hide actor which works as expected, although the IA_Look that moves the camera when the mouse is moved is very rigid, up and down, left and right all seem to get a little stuck in their extreme directions.

I think its the Clamp float functions that are causing this, but I’m not certain, any ideas to get the camera flowing smoothly with IA_Look which is bound to the mouse movement?

Move the clamp nodes to right before the X and Y assignment

Current they are not clamping that calculation.

Still feels rigid unfortunately, but maybe a little better, also the up/down seems to be the opposite direction of the mouse I think

1 Like

better solution available

@judgejames Are you trying to restrict camera angles? The camera manager does it out of the box:

image

2 Likes

this seems to fix the rigid feeling but the camera points directly up now, the mouse controls look up / down seems to be inverted too

1 Like

I would change that clamp on the pitch to -89 to 89.

1 Like

pitch perfect now! what would you recommend for Yaw? seems a little tight with -10 and 10 at the moment, any any clue regarding the inverted mouse control?

1 Like

For Yaw, I would say try -179 t 179. But if you get ‘flipping’ problems, then also go for -89 t 89.

For inverted mouse, you can just multiply by -1 here

image

1 Like

Exactly how I want it to work now, thank you! I hope I could get one more assist if possible, when using IA_Interact again, the player doesn’t exit the bed. I noticed if i quickly press the interact key twice it will do as expected but its odd its doing that

the BP_bed logic

BP player logic

Try putting a print string here

does it trigger when you unhide?

1 Like

Oh, I had to change the IA_Interact from Triggered to Started and it works, thanks for the prompt and help! you are a credit to the community :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.