Tween with angular_velocity.y does not work

I’m creating a tween for the variable angular_velocity.y, in a VehicleBody3D object, so naïvely I type :

tween.tween_property(self, “angular_velocity.y”, 0, 0.3)

And I get the following error :

E 0:00:01:0580 voiture.gd:202 @ _physics_process(): The tweened property “angular_velocity.y” does not exist in object

I could probably bypass this error by creating a value with angular_velocity.y = whatever, but I would then need to create a condition to only apply this while my tween is active, and it would become very complex for something that should be very easy.

I think it’s angular_velocity:y since it wants a node path for a property.

See the Godot docs for examples

1 Like

Yep, you’re right. :sparkling_heart:

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