怎么样添加刚体约束,比如碰撞之后不向x轴移动。js库里面PhysicsSimulation.createConstraint没有实现
angularFactor //角度约束linearFactor //位置约束