Function handleMechanicalLayer(const std::string&)

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:

  1. Handles mechanically active agents using the mechanical layer.

  2. Handles non-mechanically active agents (simple positional update)

  3. 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.