Closed aaronfranke closed 3 years ago
I'd rename to Vec2
and Vec3
, since one of the ideas behind having those constants is convenience and ease of use, I believe. Although anyone who'd like to use a shorter name could just rename the class themselves easily. 😛
I'd recommend extending Reference rather than Object. It shouldn't matter, but if someone wasn't paying attention and decided to create an instance of it, we don't want them to suddenly end up with a memory leak just because of it. Other than that, it looks great!
@willnationsdev Done. It would be nice if there was some way to mark a class as uninstanceable.
Also, I have no idea why I didn't think of this until now... but I also amended this PR with the same constants for C#.
Thanks!
This was made in response to https://github.com/godotengine/godot-proposals/issues/566. I included every possibly useful constant I could think of.
They can be used like this: