Tween movement not working

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

Hello there! I’m trying to make a dash using the tween movement, but every time i call him in Input just pressed, he don’t work. (I call him in _physics_process (in kinematic body))

if Input.is_action_just_pressed("Dash"):
	TweenNode.interpolate_property(self, "Transform/Position", transform.origin, Vector3(0, 0, -5), 1, Tween.TRANS_LINEAR, Tween.EASE_OUT_IN)
	TweenNode.start()
:bust_in_silhouette: Reply From: Dlean Jeans
  • Change Transform/Position to translation, I don’t think there’s any property like that.
  • Optionally, you can change transform.origin to translation (shortcut) or null (default to current value, which is translation).
    TweenNode.interpolate_property(self, "translation", null, Vector3(0, 0, -5), 1, Tween.TRANS_LINEAR, Tween.EASE_OUT_IN)