Neighbour remove double check on stableVeloHandler exists
This commit is contained in:
1 parent
b14b6616b2
commit
340be450b8
1 file changed
+1
-1
@@ -63,7 +63,7 @@ export default function () {
|
||||
velocityDiff /= n*(neighbourSize+sampleSize);
|
||||
latestVelocityDiff = velocityDiff;
|
||||
|
||||
if(stableVeloHandler!==null && velocityDiff<stableVelocity){
|
||||
if(velocityDiff<stableVelocity){
|
||||
stableVeloHandler();
|
||||
}
|
||||
else console.log(velocityDiff);
|
||||
|
||||
Reference in new issue
Block a user