Box2D的基本用法
-Testbed 设置(linux, windows, mac)
-Testbed 结构
-为testbed创建一个‘test’
-刚体体(Bodies)
-定制器(Fixtures)
-World设置
-自定义重力(Custom gravity)
-力与冲量(Forces and impulses)
-匀速运动(Moving at constant speed)
-让物体按指定角度旋转(Keeping a body rotated at given angle)
-跳跃(Jumping)
-使用debug draw
-画自己的物体(Drawing your own objects)
-User data
-碰撞剖析(Anatomy of a collision)
-碰撞回调(Collision callbacks)
-碰撞过滤(Collision filtering)
-传感器(Sensors)
-射线投射(Raycasting)
-查询World(World querying)
-移除物体(Removing bodies)
-“触地”问题(The ‘touching the ground’question)
-连接器(Joints)
-一些陷阱(Some gotchas)
2018-06-11 广告