matter-js icon indicating copy to clipboard operation
matter-js copied to clipboard

Help me

Open Phantom180 opened this issue 3 years ago • 4 comments

please help me as i am not able to recreate the cloth example matter.js i am new

Phantom180 avatar Sep 06 '22 16:09 Phantom180

What do you mean by "recreate"? The code is already given to you in the demo. Are you trying to use it in your own application and somehow running into problems? If so, what are the specific problems you need help with?

Generally, issues are for reporting issues with the library or clarification questions about using the API. This question was cross-posted to Stack Overflow but there's not much information to work from in either post so it's unclear to me what your goal is or where you're stuck.

In the future, please pick a title that clearly describes the problem you're facing.

ggorlen avatar Sep 07 '22 21:09 ggorlen

First of all thank you for replying When I pasted the code and opened it in the browser it showed a white screen

Phantom180 avatar Sep 08 '22 09:09 Phantom180

I have set up the html code and I tried basic shapes and they worked:but none of the examples code works

Phantom180 avatar Sep 08 '22 09:09 Phantom180

Thanks for the details. The examples are set up to work on the MJS website foremost, so there is a small amount of adaptation necessary to make them work in a different context. Based on your reply, I assume this answer shows how to do that and you're all set.

ggorlen avatar Sep 08 '22 14:09 ggorlen

Closing as I don't think there's an issue here with the examples and hopefully you managed to get things working with the help from @ggorlen.

liabru avatar Oct 12 '22 20:10 liabru