leeda

Using PIXI to achieve Sprite parabolic motion?

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.