Make the object move in the circle (asteroids game)

I’m not actually making use of the PVector as a PVector; you could replace it with two floats, px and py.

The position (px, py) would then be the center of the ship’s position, instead of (p.x, p.y). You could add px and py to each point for your quad, sure, or you could understand and use translate(), like I did.

1 Like