Make the object move in the circle (asteroids game)

Replace the PVector, which is just two floats, with two floats.

Instead of PVector p;, have float px, py;

Then instead of p.x and p.y, use px and py.

Then do the same thing for the PVector v. Use float vx, vy;.

1 Like