-
Notifications
You must be signed in to change notification settings - Fork 21
Add circle bodies #443
Comments
Are you considering refactoring the current kinematics systems to use some sort of union component instead of storing a rectangle, to enable all of these different collision types? If you are interested in adding more complex kinematics (i.e., polygons), what are the benefits to writing your own solver as opposed to integrating something like box2d or chipmunk2d? |
For now we do not plan to add polygons to the game. Rectangles and circles should be enough for our gameplay. I think I already found a solution to optimize current collisions system. Details are in comment here: #444 External physics library would be a solution to some problems, but then we would need to integrate it with our ECS library. I think libraries you mentioned are using their own storage for bodies, so connecting them to the Entt components pools would not be worth the effort. |
We're not gonna integrate any kind of physics engine to our game. |
@20zinnm @PiotrGardocki Option 1: Option 2: Later we can also make circle collision shapes for static collision body but for now it's not neccessary. |
@Czapa10 That's fair. I think Option 2 is how most other "physics" engines work, where there's a rigidbody that stores general information and a flag that indicates what geometry to use. |
The text was updated successfully, but these errors were encountered: