Mentions légales du service

Skip to content
Snippets Groups Projects

Merge obstacles into dev_whatever

Merged VAN TOLL Wouter requested to merge obstacles into dev_whatever
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -125,7 +125,7 @@ Vector2D Policy::ComputeContactForces(Agent* agent, WorldBase * world)
{
const auto& nearest = nearestPointOnLine(position, neighborObstacle.first, neighborObstacle.second, true);
const auto& diff = position - nearest;
const double intersectionDistance = radius - diff.magnitude();
const float intersectionDistance = radius - diff.magnitude();
if (intersectionDistance > 0)
{
const auto& F = diff.getnormalized() * (contactForceScale_ * intersectionDistance);
Loading