marcinmoskala
12/01/2017, 11:17 AMval algo = when {
resultOut.closestPointDistanceThreshold > 0 ->
dispatcher
.findAlgorithm(compoundWrap, otherObjWrap, null, DispatcherQueryType.CLOSEST_POINT_ALGORITHMS)
childCollisionAlgorithms[index] == null -> //the contactpoint is still projected back using the original inverted worldtrans
dispatcher
.findAlgorithm(compoundWrap, otherObjWrap, sharedManifold, DispatcherQueryType.CONTACT_POINT_ALGORITHMS)
.also { childCollisionAlgorithms[index] = it }
else -> childCollisionAlgorithms[index]
}