We want to do asteroids 100m across (or maybe even larger) but our collision detection algorithm starts hanging at that size (or possibly number of points?). Suggested solution here:
break the asteroid into sections - use floor(radius) steps in the x direction and 2 * floor(radius) steps in the y direction (steps are obviously pi / floor(radius) radians wide)
put each point at a random distance from the origin
for each section, create a convex hull for the four points and the origin
add all to a single body (?)
This also gives us concavities which is a good outcome (asteroids have craters in them).
We want to do asteroids 100m across (or maybe even larger) but our collision detection algorithm starts hanging at that size (or possibly number of points?). Suggested solution here:
This also gives us concavities which is a good outcome (asteroids have craters in them).