# Unable to get matter.js working again

**URL:** https://discourse.processing.org/t/unable-to-get-matter-js-working-again/9275
**Category:** Libraries
**Created:** [March 13, 2019, 7:35pm UTC](https://discourse.processing.org/t/unable-to-get-matter-js-working-again/9275 "2019-03-13T19:35:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Code\_Caffeine](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@Code\_Caffeine](https://discourse.processing.org/u/Code_Caffeine)
#### Post date: [March 13, 2019, 7:35pm UTC](https://discourse.processing.org/t/unable-to-get-matter-js-working-again/9275/1 "2019-03-13T19:35:00Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [March 13, 2019, 8:42pm UTC](https://discourse.processing.org/t/unable-to-get-matter-js-working-again/9275/2 "2019-03-13T20:42:28Z")

</div>

Can you provide a link to your broken sketch, e.g. with the web editor? Are you getting error messages?

You might want to consult the p5-matter examples:

> **[b-g/p5-matter-examples](https://github.com/b-g/p5-matter-examples)**
>
> Examples showing how to combine p5.js and matter.js. - b-g/p5-matter-examples

---

<div class="post-metadata">

### Author: ![Code\_Caffeine](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@Code\_Caffeine](https://discourse.processing.org/u/Code_Caffeine)
#### Post date: [March 13, 2019, 8:53pm UTC](https://discourse.processing.org/t/unable-to-get-matter-js-working-again/9275/3 "2019-03-13T20:53:42Z")

</div>

I am not receiving any error messages, so I am really confused as to what might be causing this, as I have no clues that might tell me. I have included the JavaScript part of the sketch in the following Web Editor link.

[https://editor.p5js.org/Callum\_Stewart/sketches/aRVoRWonA](https://editor.p5js.org/Callum_Stewart/sketches/aRVoRWonA)
