Tween rotation is null

Godot Version



I have some tweens working on a MeshInstance3D. These two tweens work:
tween.tween_property(self, “position”, stepv3, 0.43).set_trans(Tween.TRANS_SINE).set_ease(Tween.EASE_IN_OUT)

But this one is null (‘Cant call method on a null value’):
tween.tween_property(self, “rotation_degrees”, 33, 1.0).as_relative()

Why would that be? What is the correct way to Tween the rotation of a MeshInstance3D?

Solved it: I was looking at examples in 2D where rotation can be a single float. I needed a Vector3

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.