Implement more complex area modifications (#260)

This implements rcAreaModification which allows combining of area types when they overlap
and otherwise usage of the area type as a bit mask.
This commit is contained in:
Domenico Albani
2017-03-12 12:18:29 +01:00
committed by Jakob Botsch Nielsen
parent ef3ea40f7a
commit 433986a5a4
15 changed files with 200 additions and 134 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ void OffMeshConnectionTool::handleClick(const float* /*s*/, const float* p, bool
}
else
{
const unsigned char area = SAMPLE_POLYAREA_JUMP;
const unsigned char area = SAMPLE_POLYAREA_FLAG_JUMP;
const unsigned short flags = SAMPLE_POLYFLAGS_JUMP;
geom->addOffMeshConnection(m_hitPos, p, m_sample->getAgentRadius(), m_bidir ? 1 : 0, area, flags);
m_hitPosSet = false;