Announcement

Collapse
No announcement yet.

Move 2 vectors parallel with a distance

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Move 2 vectors parallel with a distance

    Hi

    I search a way to move 2 dynamic vectors in x-y parallell with a float.
    i have found a formula, but wanted to ask here if there is such a blueprint function in the unreal engine for this math problem?

    greez swizzy

    #2

    Use the Pythagorean theorem ifrom the image you have 1...
    ...1 is the value of the shift...
    ...1 is the diagonal of the square...
    assume a value for the side of the square (the square have 1 as diagonal)
    to know the value of the diagonal you have this math expression:

    Click image for larger version  Name:	math.png Views:	0 Size:	8.5 KB ID:	1743410

    if you know the shift value because is your value you can use inverse formula.

    Comment

    Working...
    X