Android jbox2d implementation of particle collision effect instances

Source: Internet
Author: User

recently completed A development animation effect of the work, the main need to do object collision effect, so the traditional three animation can not meet our needs (actually this is not an animated effect of the issue, in fact, a little bit of the feeling of the game). Find a particle system and find the jbox2d Relatively simple to meet our needs, can be a good simulation of the real world, of course, jbox2d is the implementation of Java layer, so like a complex collision of the computational efficiency requires a high calculation jbox2d and then I'll look at libgdx this thing, calculation and other work is encapsulated in so use C code to complete, efficiency naturally needless to say, many many many games are using this to do. There are many examples on the Internet, so we can look for them. Now let's take a look (I personally see the UI effect generally like those some, see what effect, and then decide whether to download the source code).

Run the demo video address

Based on Surfaceview package view, improve drawing efficiency, avoid affecting the main thread work, achieve surfaceview transparent, case code Surfaceview below there is a video playing area.


SOURCE Download: Jbox2ddemo




Android jbox2d implementation of particle collision effect instances

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.