最近在設置一個空的遊戲體,作爲飛機大戰遊戲的邊界碰撞體(用來銷燬飛機)
彈出了這個錯誤:
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,刪除其中一個就解決了問題。