Jump to content

Box2D examples


marv_ny
 Share

Recommended Posts

  • 4 years later...
  • 1 year later...

@megmut here you have a working example

http://lo-th.github.io/crossed/phy_b2d.html

click the github fork me on top to see and clone the whole repository. The content of that particular example on pixi box2d is this one:

https://github.com/lo-th/crossed/blob/gh-pages/phy_b2d.html

It's an old version but check the function update() { ... }

As mentioned, you let box2d handle the things, and on each update, you create pixi objects mimicking the position of the box2d objects. AFAIK. Didn't tested nor looked into it too much. I just wanted to give my two cents to the conversation. Let me know if you found something else. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...