asadefa
(Asadefa)
March 18, 2023, 4:59am
#1
What are the uses for these? I could not find any. All API functions I know about use regular Vector2/Vector3/Region3, not the int16 versions. When would I actually use the int16 versions?
azqjanna
(azqjanna)
March 18, 2023, 3:02pm
#2
Terrain used to use them. This was a really bad idea for non-obvious computer science reasons so they stopped using them.
asadefa
(Asadefa)
March 18, 2023, 4:45pm
#3
Why are they still around then?
Like any deprecated functions, they exist so games that still use them don’t break.
asadefa
(Asadefa)
March 18, 2023, 7:08pm
#5
How were they used back when the could be?
More info in this post:
Vector3s use numbers (doubles), while Vector3int16s use 16 bit signed integers (short).
Because they use integers, they only work with whole numbers. And due to their size, large numbers will result in an overflow. [-32768,+32767]
Also worth noting that Vector3int16s don’t have all the methods that Vector3s do.
Vector3int16s serve little purpose, used by one terrain method (PasteRegion ), and used in the constructor for Region3int16. Region3int16s aren’t used much either, only being used by t…
They aren’t used very much