RELATEED CONSULTING
相关咨询
Choose a way to contact us
service time:9:30-18:00
You may encounter the following questions
关闭右侧工具栏
Cocos2dx ping-pong source Box2d ping-pong source of game of game source mobile phone
  • Author:admin
  • Time:2017-04-23 17:04
Cocos2dx ping-pong source " Box2d ping-pong " game source
Download address
Price: 5$~50$- - - -Buy Source Code


Source introduction
Click white ball, procrastinating move a mouse to be able to show ball staff, after letting go, ball lever touchs Bai Qiu, game began.

-- Box2D is one is based on engine of physics of rigid body simulative, its core idea is the world, object, appearance, tie and joint, specific implementation is these concepts each component of Box2D:

·Rigid body (Rigid Body) : Won't produce the object of deformation, its any distances between 2 o'clock are changeless.
·Appearance (Shape) : The planar shape structure of object of leech on to, have attrition and resumptive material property.
·Restrain (Constraint) : Restrain even if restrict the physics of object freedom to join. In 2 dimension, the object has 3 freedom to spend, secure an object on the wall for instance, it can circle fixed dot to rotate only, it lost two freedom to spend.

·The contact restrains (Contact Constraint) : The tie that establishs automatically, the special obligation that avoids rigid body to penetrable, imitate chafes and restore, do not need a hand to move found.
·Articulatory (Joint) : the tie that two objects secure together, include to rotate, distance and prism, joint can support limitation and motor.
·Articulatory motor (Joint Motor) : An articulatory and motor support is spent freely come drive object, for instance use motor comes drive rotates.
·Articulatory limitation (Joint Limit) : If the athletic scope that limits joint can be in only with the person's arm inside certain limits like motion.
·The world (World) : Object, appearance and the world that restrain interplay to form. Allow to found many worlds.