Hi, is there a way to calculate the rotation like the arrow in the image showes
Orange numbers 1, 2 are vectors
Blue circle is the corner and that also has a vector and the dark blue arrow is the rotation i want to archive based on the two vectors
Hi, is there a way to calculate the rotation like the arrow in the image showes
Orange numbers 1, 2 are vectors
Blue circle is the corner and that also has a vector and the dark blue arrow is the rotation i want to archive based on the two vectors
There is no image.
Updated the post
Anyone?
First find the midpoint between the vectors 1 and 2 by substracting 1 from 2.
V2 - V1 = Midpoint.
Then use “Find LookAt Rotation” plugging in the Blue circle’s position and the midpoint you calculated.
Rotation = FindLookAtRotation(BlueVector, Midpoint)
Kinda worked, but the rotation changes a bit based on the distance as well. Is there a way to avoid that?
Let me know if it makes sense
I can’t test this myself since I’m not near my PC, could you provide a visual?
If you take a look at the first image, you can see that i have a corner calculated that is the blue circle.
The location 1 is never moving but the location 2 does move and the corner follows along when location 2 moves.
Is there a way to always calculate the rotation like the arrow shows (45 degree)?
EDIT: I need some sleep haha, simple just rotated it 45 or -45 based on the side the Location2 is on…
Normalise both vectors first.
Can you try to explain what Normalise does? I have tried to see videos and read on it but i just can’t seem to undestand, my brain just doesn’t work that great haha
Normalization makes the vector length (magnitude) equal 1. The direction stays the same.