#Pulling your character to an object
1 messages · Page 1 of 1 (latest)
The character still won’t move if I don’t normalize it
try setting the velocity to something like global_position.direction_to(string_pos) * global_position.distance_to(string_pos
probably not exact syntax i forgot what the method names are
(i think direction to returns a normalized vector i dunno lol)
and also you probably wanna use the strings' global position instead of local position just in case
Okay, I’m about to eat dinner but afterwards I’ll let you know
alr
It works great, thank you!
just make sure you understand why it works
Yeah
No, I see. I just didn’t know distance to and direction to existed
Actually, one last thing. If I add delta to it. It only applies vertical movement for some reason
you're multiplying the while vector by delta right?