最近在设置一个空的游戏体,作为飞机大战游戏的边界碰撞体(用来销毁飞机)
弹出了这个错误:
Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes! Please change mesh geometry or supply a tensor manually!
原因是因为我为这个游戏体同时设置了box collider 和mesh collider,删除其中一个就解决了问题。