Unreal Engine Tutorial Vectors 05: Relative Vectors

Sdílet
Vložit
  • čas přidán 22. 08. 2024

Komentáře • 2

  • @ruslangolovchenko6797
    @ruslangolovchenko6797 Před 3 lety

    Hi there, thank you for a great tutorial and can you please explain, what is the difference between inverse transform and invert transform and invert rotator, thank you!

    • @dansgamedevchannel6297
      @dansgamedevchannel6297  Před 3 lety +1

      Hi, thanks, and I'll try.
      An inverse transform is a matrix which applies the opposite changes (or reverse changes) compared with a specific transform
      A transform has three aspects: location, scale and rotation. So as an example, if we move a 3D object from the origin to (100, 200, 500), scale it to half the size and rotate it 90 degrees around the z axis (turn it to face right), then the inverse matrix of that transform matrix will move by (-100, -200, -500), scale to twice the size and rotate the object -90 degrees around the z axis (turn it to face left).
      If you applied the transform to an object, then applied the inverse of that transform, it would be back where it started.
      InvertTransform is a node in Unreal which takes as input a transform, and will give, as a result the inverse of that transform. "Inverse Transform" is a noun, to "Invert" a transform is the verb for creating the inverse of a transform.
      docs.unrealengine.com/en-US/BlueprintAPI/Math/Transform/InvertTransform/index.html
      InvertRotation is a similar thing, but it applies to a rotator and gives an inverse rotation
      I hope that helps
      Dan