Godot Version
4.1.3
Question
I recently moved over from unity and I was wondering if anyone could help or link me to any articles that go over how to implement cinemachine’s “simple follow” (or “lazy follow” as it’s now being called).
This type of “lazy follow” is seen in older games like majora’s mask. I assume there’s a name for it but I don’t personally know it. Here’s an example:
As you can see, link can “run around” the camera. The camera only cares that link is a certain distance away, not the direction he is moving in, which is actually explained by cinemachine in their documentation:
Lazy follow interprets the offset and damping values in camera-local space. This mode emulates the action a human camera operator would take when instructed to follow a target.
The camera attempts to move as little as possible to maintain the same distance from the target; the direction of the camera with respect to the target does not matter. Regardless of the orientation of the target, the camera tries to preserve the same distance and height from it.
My current implementation is this:
extends SpringArm3D
@export var target: Node3D
func _process(delta):
if target:
position = target.global_position
Unfortunately, I cannot show how my camera behaves on account of this being my first post, but my camera prefers keeping a certain offset to it’s target rather than simply a distance like the “lazy follow”.
I’m hoping someone can help by either giving some ideas or by linking me to any articles that go over how developers handled this implementation in the past. Even just naming the technique will help as well.
Thank you for reading!