CodingTrain / asteroids-advanced

24 stars 7 forks source link

Replaced offsets with array of vertices #4

Closed NaveTK closed 7 years ago

NaveTK commented 7 years ago

Accidently hit Ctrl+T so it added some spaces or linebreaks at various positions of those files and marked them as changed, I hope that's not that huge of a deal, other than that all I did was replace the offset array with an array of the vertices directly which we then use to render and check collisions of the asteroid without recalculating them every time

MunWolf commented 7 years ago

Could you please make this.r equal to the maximum radius of the asteroid or change the vertex generation so it doesn't go over this.r as it can be used to make collision more efficent? (I never liked how the asteroid could get bigger then the specified radius)

NaveTK commented 7 years ago

kk, fixed those things