how to add image in box2d js

107 Views Asked by At

I want to add image in objects of box2d js .for eg I want to add a real soccer image in the circle shape of box2d js.

I have tried to insert image by watching videos on youtube : https://www.youtube.com/watch?v=FrMExe93O1U&t=225s and reading websites : http://www.jeremyhubble.com/box2d.html ,but i didn't got the answer.

In that video they use bitmap to insert the image . And I really didn't understood the video.

I watched the video : https://www.youtube.com/watch?v=FrMExe93O1U&t=225s

If possible please send me the working code in js format.

0

There are 0 best solutions below