godotengine / godot-headers

Headers for the Godot API supplied by the GDNative module.
MIT License
381 stars 91 forks source link

Adding new overloads for Vector3 (Vector2) nad one more constructor. #62

Closed ligazetom closed 4 years ago

ligazetom commented 4 years ago

I am working with Vector3 objects a lot right now and I see there is no overloaded operator for -= (real_t) and many others like this. Also, constructor which would initialize all coordinates to the same value could be nice.

I will definitely implement it in my version of godot-cpp. Just wanted to know if there is a reason why it is not already implemented.

aaronfranke commented 4 years ago

This would have to be added to the core API before it could be added to GDNative. If desired, open a proposal on the godot-proposals repository.

Note: Personally, I don't see a need for this, it isn't a super common use case, and in GDScript you can already use Vector3.ONE * value instead of Vector3(value).