Circle and Static Shapes:
I updated the shape initialization to allow for easier polygon creation and allow for circles. Currently, only polygon-polygon and circle-polygon collisions work, as the circles borrow collision checks from polygons. Next update I will create a new lightweight check for circle-circle, as it does not need to be as complex as polygons.
Instead of manually adding points to create non-rectangle polygons, you can now specify the number of points as well as the width and height. This can create most simple polygons, but still leaves the option to specify points for more complex shapes.
Shapes can now be created as linear static, angular static, or both. Static prevents forces from other shapes applying that respective force. Instead, that force will be either converted to it’s non-static force type or applied to the non-static shape.
In the previous update, I said that it would be the last one due to flavortown ending. Turns out, flavortown got extended another month. Next update will probably be the real final update during flavortown, but follow the GitHub for future updates. In preparation for this final update, I added a trash button. For now, it just resets the environment back to its starting position.
Log in to leave a comment