![]() |
2d physics like Angry Birds - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html) +--- Thread: 2d physics like Angry Birds (/thread-3935.html) |
2d physics like Angry Birds - themadanimator - 10-19-2023 Is there some way to simulate 2d physics like is used in Angry Birds? I've tried a few things like adding a limiter so things don't fall backward or spin in 3 dimensions but not getting the results I was expecting. If I use mesh for physics shape nothing at all happens. If I use Convex Hull it sort of works but things move in odd ways. I should note that I've used 3d blocks for this but am only viewing in front view so I get the 2d effect. RE: 2d physics like Angry Birds - tyFlow - 10-19-2023 Angry Birds uses Box2D which is a dedicated 2D physics engine. Trying to adapt a 3d physics engine like PhysX to 2D could lead to issues. In the PhysX Shape operator there are locks you can put on the pos/rotation axis of each particle...you could adjust these so that the particles only move/rotate in 2D and see what happens... RE: 2d physics like Angry Birds - themadanimator - 10-20-2023 (10-19-2023, 06:49 PM)tyFlow Wrote: Angry Birds uses Box2D which is a dedicated 2D physics engine. Trying to adapt a 3d physics engine like PhysX to 2D could lead to issues. Thanks for your response. That's exactly what I tried and, like you said, I got unexpected results. I'll keep messing with it. RE: 2d physics like Angry Birds - d4rk3lf - 10-20-2023 I did similar sims for some "proof of concept" demo idea, for retro hardware, to show programmers, and to ask them if old Amiga computers are able to be programmed like that physics. I did it in TyFlow of course: https://www.youtube.com/watch?v=WsysOTMMBMM https://www.youtube.com/watch?v=uOgLCnmLUbA I am not sure that I saved the files, I can search them if you want... but either way, it's definitely possible. ![]() |