Jump to content

Using PIXI to achieve Sprite parabolic motion?


leeda
 Share

Recommended Posts

Pixi just handles the rendering, apologies if I'm wrong but it does not include a physics library.

The sort of ball mechanics I think you're after would be fairly easily modelled in any of the various physics libraries that are out there.

I've played a little with both matter and p2 with Pixi, both are excellent (in my view), but there are many other alternatives that could handle this easily.

Link to comment
Share on other sites

It's also very simple to model yourself with just a couple of vectors, one for intial ball speed on the x and y planes, and one for gravity which you add to the ball y speed each update cycle. You can then elaborate by modifying the speed vector according to ball mass, etc

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...