Box2dWeb and Images

How to import and attach PNG or GIF to a form in Box2dWeb?

The best resource I can find on the Internet is at: http://www.jeremyhubble.com/box2d.html

However, this โ€œtutorialโ€ does not provide much explanation about how the images are actually used. Thus, it is possible, but I cannot get the userData trick to work.

+3
source share
2 answers

Now I answered you on gamedev (along with an example), but here is the bottom line:

You are usually responsible for displaying the state of your box2d world - the "userData trick" you are referring to is not actually associated with the box2d frame.

userData , . - , , .. , , , - processObjects, imgsrc Image . ( , - , )

+1

All Articles