I am very new to the matter.js
library, and I have already made a project using it, which works fine. However, I am now attempting to create another project but cannot get the same results. It seems like I have tried everything, even looking at the code to see where I went wrong, but they seem identical.
The first project I made, after calling the World.add()
function, everything worked as expected, and the bodies fell due to gravity. However, this time, I am unable to achieve these results. I used the p5.js
renderer in both these projects, yet the only way I seem to be able to render in this second attempt is by using the Matter.Render
command. Does anybody have any ideas what might be causing this?