Lame note 29-cocos2d-x-3.2 Box2d physical engine dynamics module introduction, cocos2dbox2d

Source: Internet
Author: User

Lame note 29-cocos2d-x-3.2 Box2d physical engine dynamics module introduction, cocos2dbox2d

Previous review

This famous saying goes:Struggle, search, and discover without giving in.[Poet Ding nisheng]

In the previous article, we learned the collision module, one of the three main modules of the Box2d physical engine. This module mainly contains shape, collision function, dynamic tree, and other concepts.

This time, I learned about the dynamics module.

 

Introduction

The Dynamics module is the most complex of the Box2d engine and the most commonly used module. This module is built on the common and collision modules, so we need to first understand the common and collision modules.

The Dynamics module contains the following categories:

Extends fixture class

 Rigid body class

 Contact class

 Joint classes

 World class

 Listener classes

The concepts of these classes have been introduced at the very beginning, and I will not be so embarrassed here.

However, we need to remember that these classes are mutually dependent.

Summary

In order to form a more obvious classification, it is so easy to take this note. Next, he will continue to learn the main classes in the Dynamics module of the Box2D physical engine.
How to Use the box2d physical engine in vc ++ 60?

It is estimated that you do not include box2d. X

An error occurs because the compiler cannot find the box2d. h or box2d. cpp file.

You need to find this file and put it in the Vc installation directory.

Or you can put the function of this file in a file named box2d. h or box2d. cpp.

Then add the project you wrote and compile it.

You should download and install the box2d for VC package.

How to Use Xcode tools to add Box2D physical engine to the cocos2d-x framework?

In this case, the solution is to go to the box2d source code and copy and paste it in ..
 

Related Article

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.