Commit 2a41dd64 authored by Jerry's avatar Jerry
Browse files

you shall be there

parent 1b3936ec
......@@ -573,6 +573,16 @@ namespace gdw {
}
}
void maploader::set_agent_pos(int idx, const glm::vec3 &pos){
dtCrowdAgent *ag = crowd_->getEditableAgent(idx);
if (ag && ag->active) {
ag->npos[0] = pos.x;
ag->npos[1] = pos.y;
ag->npos[2] = pos.z;
}
}
void maploader::update(const float dt) {
crowd_->update(dt, nullptr);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment