The title says all, what is the difference between Vector3 and Vector3int16 and how to use Vector3int16?
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 terrain for some things. (Terrain.MaxExtents, CopyRegion, plus 2 more deprecated methods used by the old terrain system)
5 Likes