Epic Games' new Motion Matching example project looks great in 3rd person. Turning it into a system that works in First Person view is surprisingly easy, giving you an immersive Character Controller with full body animation and basic traversal.
Download the Sample project here: https://dev.epicgames.com/documentati...
Let's show you how it's done:
1. Attach the Spring Arm to the Mesh.
a. Set the parent socket to the Head Bone
b. clear all transform on the spring arm
2. Find the "Camera Style Aim" variable
a. set the spring arm length to 0
b. set a socket offset of 9, 0, 10
c. set translation lag speed to a high value (50)
d. set field of view to 90 (or your own preference)
3. In the Event Graph, find the Aim input. (We will modify the code for Aim Input to turn it into a toggle of the first Person view.)
a. Use the Started Output from the enhanced input event and negate the "wants to aim" variable.
b. Set the "Wants to aim variable"
That's it.
An additional Fix:
4. It's possible to clip into walls. To fix this, you can increase the capsule radius until this no longer becomes an issue.
►Join the discord: / discord
►Website: http://niftyllamagames.com
►Mail: [email protected]
►Twitter: / realmrsky
On this page of the site you can watch the video online UE5 Lazy Tutorial - First Person Motion Matching Sample Project Conversion with a duration of hours minute second in good quality, which was uploaded by the user CGSky 13 June 2024, share the link with friends and acquaintances, this video has already been watched 15,166 times on youtube and it was liked by 515 viewers. Enjoy your viewing!