Browse Source

Fehler in der Treffpunktberechnung eines 2d Modells behoben

kolja 5 years ago
parent
commit
9f0c47bf28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Model2D.cpp

+ 1 - 1
Model2D.cpp

@@ -435,8 +435,8 @@ bool Model2DData::calcHitPoint( Vertex pos, Vertex dir, const char *polygonName,
                         Vertex rotKraft = normal * ( normal * kNorm ) * dir.getLength();
                         rotSpeed = ( (float)sqrt( rotKraft.getLength() * ( point - *polygon->var.schwerpunkt ).getLength() ) / 180.f ) * 3.14f * ( normal * kNorm );
                         hitpoint = point;
+                        ret = 1;
                     }
-                    ret = 1;
                 }
             }
         }