
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...