Skip to content

Commit ed8472f

Browse files
committed
bit fix
1 parent 7059bc2 commit ed8472f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

SimulationModel/Cell.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ void Cell::iteract(Cell* other, doType how, Vect2D<float> vector)
130130
}
131131
else {
132132
if (how == doType::nothing) {
133-
if (vector.getAbs() > (size + other->getSize()) / 4)return;
133+
if (vector.getAbs() > (size + other->getSize()) / 3)return;
134+
if (vector.getAbs() > (size + other->getSize()) / 4)vector /= 2;
134135
}
135136
if (vector.getAbs() == 0) {
136137
vector.x = randPositionOffset(this->size);

0 commit comments

Comments
 (0)