246: GameDev: Points Vs. Vectors. Which Should You Use?
Description
Do you know the differences between points and vectors? You might be surprised. I learned a few things myself recently when I implemented points and vectors in the TUCUT library. Listen to episode 240 to learn more about TUCUT.
As to which you should use, that’s sort of a trick question. You’ll most likely use whatever your game engine provides. Unless you’re writing your own library like I’m doing, the idea of a point and a vector are very basic concepts that would be provided for you.
Any type of drawing needs to know where to do the drawing.
Animations need to know which directions to move.
Game items need to know where they exist in the world.
Listen to the full episode to learn what you can do with points and vectors, how they can interact, and why many game engines provide only vectors.