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
Sur cette page du site, vous pouvez voir la vidéo en ligne UE5 Lazy Tutorial - First Person Motion Matching Sample Project Conversion durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CGSky 13 juin 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 15,166 fois et il a aimé 515 téléspectateurs. Bon visionnage!