Add Physics2D components and systems (WIP)

This commit is contained in:
Jérôme Leclercq
2022-03-16 08:24:57 +01:00
parent 9b1583501b
commit 19f6bdf7e0
12 changed files with 476 additions and 14 deletions

View File

@@ -110,9 +110,11 @@ namespace Nz
static constexpr std::size_t InvalidShapeIndex = std::numeric_limits<std::size_t>::max();
protected:
void Destroy();
private:
cpBody* Create(float mass = 1.f, float moment = 1.f);
void Destroy();
void RegisterToSpace();
void UnregisterFromSpace();