Found Really Good Example Off How To Create Vector2!

http://noobtuts.com/java/vector2-class

here you can see some more cool stuff
http://www.mathsisfun.com/algebra/vectors.html

its a really easy tutorial =D helped me understand what a vector class is xD never used vectors
but gona try to implement shooting when rotate so i read that vectors can help alot in that =D

enjoy =D

It doesn’t show how to do any math with them though, which just basically makes them containers. :frowning:

well its really good for beginners that does not know what vector2D class is, and that dont know how to create it xD

Well if said beginner doesn’t know how to use vectors, then they could just use a library like LibGDX.

Vectors are like magnitude simpler concept than full framework like libGDX.

I wasn’t saying use LibGDX just if you needed vector classes, I was just saying that I feel if someone wants to make games, OpenGL is the way to go, hence a beginner’s choice is narrowed down to a game library, and LibGDX has the most functions etc.

Here’s a far better tutorial on vectors.

http://www.wildbunny.co.uk/blog/vector-maths-a-primer-for-games-programmers/vector/

…or they could just learn how to use vectors. Mightily useful things they are.

libgdx doesn’t hinder learning how to use vectors. Maybe you are implying that writing your own vector class is a good idea? (hint: no)

No, I’m implying that it’s worth tackling the problem head on and learning a bit about the maths behind vectors. CopyableCougar’s point struck me as “Can’t use vectors? Use LibGDX”. My response is “Can’t use vectors? Learn how to use vectors”.