Physics2D: Add support for trigger and callbacks

This commit is contained in:
Jérôme Leclercq
2017-02-21 15:58:31 +01:00
parent c2e4ccaf72
commit 7b47a6ad2e
6 changed files with 179 additions and 2 deletions

View File

@@ -190,7 +190,7 @@ namespace Nz
else
m_geom = NullCollider2D::New();
m_shapes = m_geom->CreateShapes(this);
m_shapes = m_geom->GenerateShapes(this);
cpSpace* space = m_world->GetHandle();
for (cpShape* shape : m_shapes)