Function handleMechanicalLayer(const std::string&)
Defined in File Crowd.h
Function Documentation
-
void handleMechanicalLayer(const std::string &dynamicsFile)
Executes the mechanical layer.
This function is responsible for updating the state of each agent in the Crowd. It performs the following steps:
Handles mechanically active agents using the mechanical layer.
Handles non-mechanically active agents (simple positional update)
Generates an output file with the new position and velocity, plus their angular counterparts.
- Parameters:
dynamicsFile -- The input dynamics file will be overwritten with the output of the mechanical layer.