Godot Version
4.3
Question
Sorry for the ambiguous question sentence, but I am not sure how to phrase this in one sentence, so here, let me explain this further:
I am making my camera tween to a destination both positional and rotational in 2 seconds. Something like this:
tween = create_tween().set_parallel(true)
tween.tween_property( mainCamera, "position", cameraOfInterest.global_transform.origin , 2).set_trans(Tween.TRANS_EXPO)
tween.tween_property( mainCamera, "rotation", cameraOfInterest.global_rotation , 2).set_trans(Tween.TRANS_EXPO)
This code works fine if the destination does not change, but imagine this: the destination cameraOfInterest
is moving in real time with respect to the character. It could be tilted freely and the position could be changed around. With the code above, mainCamera
end up at the position and rotation of cameraOfInterest
2 seconds ago.
Is it possible to tween in such a way that in the end, this tweening process will end at the current exact position and rotation of cameraOfInterest
and not its 2 seconds ago position and rotation?
Note: Afterward, I could set cameraOfInterest.make_current()
if the mainCamera
’s tweening end at cameraOfInterest
correctly.