Announcement

Collapse
No announcement yet.

Limiting camera pitch

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Limiting camera pitch

    Hey,

    I am new to UE4 and have been learning it in University and my spare time.

    I'm making a project where the player controls the tank, I have been using this tutorial thus far:
    https://www.youtube.com/watch?v=Oh7pDL8RFaI

    Unfortunately he doesn't finish the part where the camera's pitch is restricted, so the turret can rotate a full 360 degrees.

    I have already searched and attempted multiple solutions, but to no avail, so I'm hoping someone can help me with my specific problem.
    I know I need to clamp the min and max values of the pitch, but have no idea where to start here, any clamp that I have added myself does nothing for me.

    Below is what I currently have, as per the tutorial:

    Click image for larger version

Name:	Untitled.png
Views:	1
Size:	340.6 KB
ID:	1175130



    And here is the view port for the blueprint, I have two cameras, that switch from third to first person when the space bar is pressed, this is working.

    Click image for larger version

Name:	Untitled2.png
Views:	1
Size:	451.5 KB
ID:	1175131



    Thanks in advance!
Working...
X