This "Bug" Blew My Mind | Unreal Engine 5 | Devlog

Поділитися
Вставка
  • Опубліковано 20 вер 2024
  • WISHLIST NOW → store.steampow...
    Subscribe ❤
    / @7weirdseeds
    Follow me on TikTok
    / 7_weird_seeds
    Follow me on Instagram
    / 7weirdseeds
    Follow me on X/Twitter
    / 7weirdseeds
    Follow me on Reddit
    / 7weirdseeds
    Panic Lane is a Unreal Engine 5 driving/racing game where you try to stay alive on challenging tracks full of obstacles. Consider subscribing if you want to see devlogs and other game development related stuff. In this video I will describe a fascinating bug in a half-pipe world that taught me a lot regarding rotation when calculating the amount of degrees for spin tricks.

КОМЕНТАРІ • 16

  • @7WeirdSeeds
    @7WeirdSeeds  5 місяців тому

    WISHLIST NOW → store.steampowered.com/app/2373560/Panic_Lane/?
    Did I get anything wrong? Hopefully not, but let me know if you think so! :)

  • @honzikjdx7268
    @honzikjdx7268 5 місяців тому +8

    This bug isn't all that bad, just wait until you come across gimbal lock, that's where the real pain is.

    • @7WeirdSeeds
      @7WeirdSeeds  5 місяців тому +3

      Unfortunately I already know what that is and I'm trying to find every excuse not to learn quats..

  • @hannajauri
    @hannajauri 5 місяців тому +6

    I subbed for moose jokes but here I am learning math?

  • @uliveulearnandregret
    @uliveulearnandregret 4 місяці тому +2

    the scwipt is awesome!

  • @satibel
    @satibel 4 місяці тому

    my guess would be that you'd want to take a rotation vector from the moment you leave the ground so that if the car is rotating on 2 axis you don't get the issue cropping up again.

  • @hdjt-p9901
    @hdjt-p9901 5 місяців тому +1

    Good explanation 😢

  • @AndersBergh
    @AndersBergh 5 місяців тому +2

    When feature-creeps are the features

  • @N0tTh3Pr0
    @N0tTh3Pr0 5 місяців тому +2

    This is the same problem I have faced in my game as well... but I added slo-mo speed ramp effect to the camera for the "Cool" factor. Looked actually cool but your instance threw a new shade at this problem for me now. Thanks a lot lol.

    • @7WeirdSeeds
      @7WeirdSeeds  5 місяців тому +1

      I bet I also have this same bug lurking somewhere else in the game.. But until now it has been close enough.

  • @gregbernstein9126
    @gregbernstein9126 4 місяці тому +1

    What if the car isn’t just in a flat spin but is also rotating on another axis, so that your original plane at the time of takeoff is no longer aligned?

    • @7WeirdSeeds
      @7WeirdSeeds  4 місяці тому

      I'm so glad you asked this question! The problem would reoccur in that case. What can be done is recalculating the plane projection for every frame the car is in the air.

  • @ikelos8190
    @ikelos8190 5 місяців тому +2

    you could just take the local rotation no?

    • @7WeirdSeeds
      @7WeirdSeeds  5 місяців тому

      That was my first intuition, but my current understanding is that local and relative rotation always require a parent. The car is not rotating _in relation_ to anything (except the world).

    • @ikelos8190
      @ikelos8190 5 місяців тому

      @@7WeirdSeeds Woah, i checked it myself because i was like "no way that's true" but i think you might be right
      There's gotta be a way tho, every game engine i know lets you grab the local transform of something i severely doubt this one doesnt