The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+1 vote

I thought I read somewhere that Godot had support for Vector2Int (or at least plans for it). There's certainly places in the API where it would make more sense than returning floating point values.

Does anyone know which version this will be part of? I want to determine how much time to put into my own "coordinates" type.

in Engine by (868 points)

1 Answer

+3 votes
Best answer

It's already been implemented in the master branch:

It will be included in the 4.0 release. I haven't seen anything about backporting it to a 3.2 release.

by (22,191 points)
selected by

Thanks. They went with a strange choice for the actual name. Do you know if 4.0 will include swapping existing APIs that should be returning integers to the new type?

i is consistent with other naming such as randi() or wrapi().

I haven't spent too much time digging into it yet, as the stability hasn't been high. I'm waiting until it gets closer to beta.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.