2d physics like Angry Birds
#1
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.
  Reply
#2
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...
  Reply
#3
(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.

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...

Thanks for your response. That's exactly what I tried and, like you said, I got unexpected results. I'll keep messing with it.
  Reply
#4
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. Smile
  Reply


Forum Jump: