-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Hey folks!
I am using matter.js (in addition to p5.js) for a rather ambitious student project where we are trying to use real world user drawings as inputs for physics bodies to solve some rudimentary puzzles in a short little game. One such puzzle requires the player to draw a body that would wedge between a rotating ball with spikes and a static wall. You can see a demo (and my obvious problem) in the video below:
MatterIssue.mp4
As you can see, my body just gets pushed through the wall by the rotation of the spikes, instead of halting it (like one would expect from actual world physics). Unfortunately no experimenation (e.g. changing body types, changing static/dynamic, changig body properties) has changed anything about this, so I am left wondering if this is down to a limitation of matter.js or if it is incompetence on my side.
I would be super grateful for any help, as setting this level up was quite the headache already and I would hate to forego the puzzle concept because of physics engine tomfoolery.