Skip to content
Permalink
Browse files

Fixed invalid collideeMD usage when modInfo.allowSepAxisCollisionTest…

… = true
  • Loading branch information
Jose Luis Cercos-Pita
Jose Luis Cercos-Pita committed Mar 23, 2020
1 parent cb54625 commit 7c63c738f594569d9e6b14b2b7936dee1d162f9f
Showing with 1 addition and 1 deletion.
  1. +1 −1 rts/Sim/MoveTypes/GroundMoveType.cpp
@@ -2038,7 +2038,7 @@ void CGroundMoveType::HandleUnitCollisions(
const float2 collideeParams = {collidee->speed.w, collideeMobile? collideeMD->CalcFootPrintMaxInteriorRadius(): collidee->CalcFootPrintMaxInteriorRadius()};
const float4 separationVect = {collider->pos - collidee->pos, Square(colliderParams.y + collideeParams.y)};

if (!checkCollisionFuncs[allowSAT && (forceSAT || (collideeMD->CalcFootPrintAxisStretchFactor() > 0.1f))](separationVect, collider, collidee, colliderMD, collideeMD))
if (!checkCollisionFuncs[allowSAT && (forceSAT || (collideeMobile && collideeMD->CalcFootPrintAxisStretchFactor() > 0.1f))](separationVect, collider, collidee, colliderMD, collideeMD))
continue;


0 comments on commit 7c63c73

Please sign in to comment.
You can’t perform that action at this time.