UE5 Lazy Tutorial - First Person Motion Matching Sample Project Conversion

Поделиться
HTML-код
  • Опубликовано: 12 июн 2024
  • 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: 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: niftyllamagames.com
    ►Mail: leander@niftyllamagames.com
    ►Twitter: / realmrsky
  • РазвлеченияРазвлечения

Комментарии • 19

  • @IamSH1VA
    @IamSH1VA 9 часов назад

    Thanks, this looks really nice... all those animations and shadows looking nice even on First Person

  • @play-good
    @play-good 28 дней назад +3

    Niceee this makes me remember the advanced locomotion system ALS❤

    • @CGSky
      @CGSky  28 дней назад +4

      It's made by the same person after he was hired by Epic Games as far as I know.

  • @umutfarukdilli
    @umutfarukdilli 21 день назад

    🎉🎉 thanks bro

  • @nikolaaa7180
    @nikolaaa7180 21 день назад +2

    my turn in place animations dont work, when I rotate, I can see my character's body, why could that be?
    Edit: disabled root bone offset and modified rotation in abp and now just have to implement custom turn in place logic

    • @CGSky
      @CGSky  17 дней назад +1

      For me that was fixed when switching to the Aim mode instead of the normal camera mode.

  • @poeticallusions44
    @poeticallusions44 25 дней назад

    any ideas on how the socket be parented to the head on the other characters?

  • @IK_GamerDev
    @IK_GamerDev 25 дней назад +1

    Hello, this was a great tutorial. I have a question about a problem: when we turn the character too quickly, the rotation doesn't keep up. Is there a way to solve this problem?

    • @ismistdev
      @ismistdev 14 дней назад

      Mouse smoothing💀💀

  • @Mahizes1
    @Mahizes1 13 дней назад

    Thank you for the tutorial. I have two questions: Firstly, what should we do if we still want to use the aiming feature? Secondly, how can we prevent the character from seeing inside themselves?

    • @CGSky
      @CGSky  10 дней назад

      you can create a new camera mode instead for first person. This envolves a few more steps which is why I didn't show it here to keep the tutorial concise.
      But you can simply have another state in the enum.
      If you mean seeing inside themselves during the transition, I recommend either fading the screen to black while the camera would be inside, or cutting instantly to the first person view.

  • @DeVaughnMoody
    @DeVaughnMoody 16 дней назад

    Do you know if it’s possible to make the motion matching character drive a vehicle like the ones from the city sample project?

    • @CGSky
      @CGSky  14 дней назад

      Sure if you have the animations required for that and build on the existing system, I'm sure it's possible.

  • @HubbyWubson
    @HubbyWubson 26 дней назад

    How can I make it always first person

  • @FPChris
    @FPChris 14 дней назад

    VR next

  • @mohamedalmala
    @mohamedalmala 22 дня назад

    1:02 The camera should move in a more professional way

    • @CGSky
      @CGSky  17 дней назад

      That's a different tutorial, but there's a lot of ways you could do that.

    • @ismistdev
      @ismistdev 14 дней назад

      What, you don't want to see the back of her eyeballs every time?😅😅

  • @oby1
    @oby1 28 дней назад

    First!