Physics3D: Use pool for rigid bodies (+ sort them to improve cache)

This commit is contained in:
SirLynix
2023-03-12 20:17:36 +01:00
committed by Jérôme Leclercq
parent 899739cdce
commit 5ee25e9621
5 changed files with 90 additions and 18 deletions

View File

@@ -78,7 +78,8 @@ namespace Nz
private:
std::shared_ptr<Collider3D> m_geom;
std::unique_ptr<btRigidBody> m_body;
std::size_t m_bodyPoolIndex;
btRigidBody* m_body;
PhysWorld3D* m_world;
};
}