File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -498,6 +498,14 @@ dtCrowdAgent* dtCrowd::getEditableAgent(const int idx)
498
498
return &m_agents[idx];
499
499
}
500
500
501
+
502
+ dtCrowdAgentAnimation* dtCrowd::getEditableAgentAnim (const int idx)
503
+ {
504
+ if (idx < 0 || idx >= m_maxAgents)
505
+ return 0 ;
506
+ return &m_agentAnims[idx];
507
+ }
508
+
501
509
void dtCrowd::updateAgentParameters (const int idx, const dtCrowdAgentParams* params)
502
510
{
503
511
if (idx < 0 || idx >= m_maxAgents)
Original file line number Diff line number Diff line change @@ -269,6 +269,11 @@ class dtCrowd
269
269
// / @return The requested agent.
270
270
dtCrowdAgent* getEditableAgent (const int idx);
271
271
272
+ // / Gets the specified agentAnim from the pool.
273
+ // / @param[in] idx The agent index. [Limits: 0 <= value < #getAgentCount()]
274
+ // / @return The requested agentAnim.
275
+ dtCrowdAgentAnimation* getEditableAgentAnim (const int idx);
276
+
272
277
// / The maximum number of agents that can be managed by the object.
273
278
// / @return The maximum number of agents.
274
279
int getAgentCount () const ;
You can’t perform that action at this time.
0 commit comments