lufyLegend Box2d初始化

始化Box2d

LGlobal.box2d = new LBox2d();

刚体:它上面任何两点之间的距离都是完全不变的

  1. 矩形刚体
addBodyPolygon(width,height,type,density,friction,restitution);

type(静态或动态) density(密度)friction(摩擦)restitution(弹力)

 

原文地址:https://www.cnblogs.com/tutumissed/p/8276479.html