Closed drongood12 closed 5 months ago
This will eventually be very useful, I feel. I already use a custom Vector2Int for my world streaming stuff, and it will become even more useful when 2D support is added brought up to the standard of 3D, and we use it for things like tilemaps.
https://github.com/Facepunch/sbox-voxels/blob/main/code/IntVector3.cs
I think we've reimplemented this in enough different projects that this is justified, should be named Vector3Int
Added now, same with Vector2Int
I checked, so far everything seems to be working well, thanks!
For?
S&Box
What can't you do?
I'm tired of moving the same Utils files from project to project to work with int vectors; I would like to see this added to the main s&box library.
How would you like it to work?
Add Vector2Int, Vector3Int structure and corresponding mathematical operations for them https://docs.unity3d.com/ScriptReference/Vector2Int.html
What have you tried?
I drag the same file from project to project to make it more convenient to work with integer vectors
Additional context
No response