godotengine / godotengine/godot-docs
default example for tween lacks an important warning about tweening to zero scale ( as it may generate invalid det ).
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 25
Description
**Your Godot version:**
4.3
**Issue description:**
The doc provides the following example :
```
var tween = get_tree().create_tween()
tween.tween_property($Sprite, "modulate", Color.RED, 1)
tween.tween_property($Sprite, "scale", Vector2(), 1)
tween.tween_callback($Sprite.queue_free)
```
But the Vector() for scale **if not followed by a queue_free**, eventually creates an invalid matrix, triggering the following error **every frame until the object is freed** :
```
E 0:00:11:0630 Basis::invert: Condition "det == 0" is true.
core\math\basis.cpp:47 @ Basis::invert()
```
**URL to the documentation page (if already existing):**
https://docs.godotengine.org/en/stable/classes/class_tween.html
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.