Join Nostr
2024-12-18 17:13:31 UTC

dbat :godot: on Nostr: #Gdscript #GodotEngine Is there a better way to write this kind of thing? ``` if ...

#Gdscript #GodotEngine

Is there a better way to write this kind of thing?

```
if is_zero_approx(vec.x): vec.x=0
if is_zero_approx(vec.y): vec.y=0
if is_zero_approx(vec.z): vec.z=0
```

🦇