示例#1
0
 //Side bumpers moves the slowest character of the collision out of the bounds of the other
 void SideBumper(Movements other)
 {
     //The function is called on both actors of the collision, only the slowest is affected
     if (other.absDeviationAcceleration > movementsComponent.absDeviationAcceleration)
     {
         movementsComponent.ApplyTempDeviation((type == BumperType.LeftBumper ? -1f : 1f) * bumpDeviation, sideBumpTime);
     }
 }