(3D)Normalizing look_at

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By zen3001

is there a way to normalize the look_at function? so when i call the function the spatial doesn’t instantly look at that position but just rotates slightly at that direction

:bust_in_silhouette: Reply From: rakkarage

put a slerp in your _process to adjust lookAt over time or use a tween if you want to use bounce or elastic in movement




thx, these transform functions still confuse me but I got it to work somehow.
I added a spatial as a child to the main node, made all the look_at functions only effect it and put made the transform of the main node interpolate_with() the transform of the child node

zen3001 | 2020-06-18 20:38