Added userData pointer for dtCrowdAgent.
This commit is contained in:
parent
5b4f8b6047
commit
496ee57897
@ -53,6 +53,7 @@ struct dtCrowdAgentParams
|
|||||||
float separationWeight;
|
float separationWeight;
|
||||||
unsigned char updateFlags;
|
unsigned char updateFlags;
|
||||||
unsigned char obstacleAvoidanceType;
|
unsigned char obstacleAvoidanceType;
|
||||||
|
void* userData;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct dtCrowdAgent
|
struct dtCrowdAgent
|
||||||
|
Binary file not shown.
@ -325,6 +325,7 @@ void CrowdTool::handleClick(const float* s, const float* p, bool shift)
|
|||||||
{
|
{
|
||||||
// Add
|
// Add
|
||||||
dtCrowdAgentParams ap;
|
dtCrowdAgentParams ap;
|
||||||
|
memset(&ap, 0, sizeof(ap));
|
||||||
ap.radius = m_sample->getAgentRadius();
|
ap.radius = m_sample->getAgentRadius();
|
||||||
ap.height = m_sample->getAgentHeight();
|
ap.height = m_sample->getAgentHeight();
|
||||||
ap.maxAcceleration = 8.0f;
|
ap.maxAcceleration = 8.0f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user