function ret = computeCollisionProbability(this) collision = rand(1); CollisionProbability = 1 - exp(-this.TimeSpentInInteractionRegion/this.CollisionTime); if this.BackgroundCollision && collision <= CollisionProbability ret = true; else ret = false; end end