Showing posts with label box2d. Show all posts
Showing posts with label box2d. Show all posts

Tuesday, January 27, 2015

[Tutorial] Cocos2d-x: Box2D - another physics library of cocos2d-x (Part 2)

Filled under: ,

In previous part, we studied about Box2D, and build a small app using physics Box2D. In this lesson, we come to advanced a bit, control the ball, make it collide with the screen với màn hình as follow: + Make the ball move by vector + force + Predict the direction the ball moves Step 1 - Make the ball move by vector + force * Open file HelloWorldScene.h, in Public area, add the following code block: // You can see the meanings of variables...

Posted By Live Blog1:19 AM

Saturday, January 24, 2015

[Tutorial] Cocos2d-x: Box2D - another physics library of cocos2d-x (Part 1)

Filled under: ,

Now, you study how to use Box2D in Cocos2d-x. By default, Cocos2d-x is installed for users to use the library of Cocos2d-x + Chipmunk, if you want to use Box2D, you must do some task to import it into the compiler. In this lesson, you study: + How to setup to use Box2D + An example of physic, applying Box2D physic Bắt đầu chém nào! Step 1 - Setup to use Box2D Because by default, Cocos2d-x forces you to use Chipmunk, so you must do some...

Posted By Live Blog9:06 PM

Choose an Android item