An example of an Android jbox2d particle collision to achieve a special effect

Source: Internet
Author: User

Recently completed a development of animation effects work. The effect, so the traditional three animation can not meet our needs (in fact, this is not an animated effect of the issue.) In fact there is a little bit of game feeling).

Looking for a particle system, it is found that jbox2d is more simple to meet our needs, can be very good simulation of the real world. Of course jbox2d is the implementation of Java layer, so like complex collisions, such as the computational efficiency requirements very high calculation jbox2d, after I will study Libgdx This east, the calculation and other work is encapsulated in so with C code finished. Efficiency naturally needless to say. Very many, many, many games are made with this. Online is also a lot of examples, we can go to look for.

Now let's see (I personally see the UI effect generally like those some, see what effect, and then decide whether to download to see the source code).

Execute Demo Video Address

Based on Surfaceview package view. Improve drawing efficiency, avoid affecting main thread work, realize surfaceview transparency. The case code Surfaceview the following another video play area.


Source code Download: Jbox2ddemo




Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

Android jbox2d An instance of a particle collision to achieve a special effect

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.