Animating a zoomed view
A core element of modern first-person shooters is a variable FOV in the form of a player's ability to look down the scope of a gun to get a closer view of a target. This is a significant contributor to the feeling of accuracy and control that modern shooters provide. Let's add a simple form of this functionality to our prototype.
In an empty section of the grid next to your Mouse input nodes, right-click, search for zoom, and add an InputAction Zoom trigger node. We want to modify the FOV value that is contained within the First Person Camera Component, so we go to the Components panel and drag First Person Camera out onto Event Graph.
Drag the output pin into empty grid space, search for the Set Field Of View node, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access