}
// line is the vector between the centers, from source to target
Vector line = position.clone().invert().add(target.getPosition());
double radsum = source.getBoundingRadius()
+ ((RenderableObject) target).getBoundingRadius();
if ((line.dot(line) < radsum * radsum)) {
if (source.equals(solvedCollisions.get(target))) {
return;
}
Vector impulseArm = line.clone().scale(source.getBoundingRadius() / radsum);
source.collideWith(target, source.getPosition().clone().add(impulseArm),