MengeCrowdSim / Menge

The source code for the Menge crowd simulation framework
Apache License 2.0
138 stars 64 forks source link

OBBShape::setDirections leads to assertion error in PrefVelocity #102

Open curds01 opened 6 years ago

curds01 commented 6 years ago

As noted in this conversation, it appears that OBBShape is producing, potentially, bad preferred velocities. This is most likely due to the default behavior for normalizing the preferred direction vector. When the vector from the agent's position to its goal position has insufficient length to normalize, it has to handle that to produce a valid preferred velocity.

The same most likely applies to all goals.