An addition to the Vector types (rotate_toward) #7302
OllyMan21
started this conversation in
Engine Core
Replies: 1 comment 2 replies
-
See #2074 (it is not the same thing). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I propose a combination of aspects from the move_toward and slerp methods of the Vector types.
Instead of using a weight for slerp we use a "delta" in such a way that the vector to be rotated is rotated by an angle corresponding to "delta". Much like how move_toward moves the vector (A) towards vector (B) along A.direction_to(B) with a magnitude of delta instead of a weight like in lerp, we replace the slerp weight with a delta and the length of the vector is adjusted the same way slerp would.
Beta Was this translation helpful? Give feedback.
All reactions