local person = sp.SkeletonAnimation:create(pathJson, pathAtlas, 1)
monster:setAnimation(0, “antionName”, true)
monster:setAnimation(0, “antionName”, true)
print("monster:getBoundingBox().width")
这样你会得到这样一个数:1.1754943508223e-038
解决方法:
在获取boundingBox之前调用update函数
monster:update(0)
print("monster:getBoundingBox().width")
OK~