Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

libgdx Vector.cpy question

$
0
0

Why do people use this:

public void set(Vector2 v) {
    this.vector2 = v.cpy();
}

insted of just using:

public void set(Vector2 v) {
    this.vector2 = v;
}

What I don’t know that I should know?


Viewing all articles
Browse latest Browse all 434

Trending Articles