leeda Posted September 26, 2018 Share Posted September 26, 2018 Here I want to do a parabola of basketball。 I thought of using Pixi, but Pixi had no good built-in methods. Here is a demo I want to achieve:https://basketball.frvr.com/;He looks pretty good! How do I achieve this basketball track? And basketball has the feeling of radian. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 26, 2018 Share Posted September 26, 2018 Moved to Coding & 2D. Does anyone know a library that handles parabolic motion here? Quote Link to comment Share on other sites More sharing options...
leeda Posted September 27, 2018 Author Share Posted September 27, 2018 ? Quote Link to comment Share on other sites More sharing options...
mattstyles Posted September 28, 2018 Share Posted September 28, 2018 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. Quote Link to comment Share on other sites More sharing options...
alex_h Posted October 1, 2018 Share Posted October 1, 2018 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.