Skip to content

Commit

Permalink
smaller interaction radius for cylinders
Browse files Browse the repository at this point in the history
  • Loading branch information
UmarAbubacar committed Jan 9, 2024
1 parent 60e9619 commit f673903
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/operation/mechanical_forces_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ class MechanicalForcesOp : public AgentOperationImpl {
last_time_run_[tid] = current_time;
}

if(agent->GetShape() == Shape::kCylinder) {
squared_radius_ = 0.0001;
}

const auto& displacement =
agent->CalculateDisplacement(force_, squared_radius_, delta_time_[tid]);
agent->ApplyDisplacement(displacement);
Expand Down

0 comments on commit f673903

Please sign in to comment.