def unbuckleBasis(basis, maximumUnbuckling, normal):
 normalDot = basis.dot(normal)
 dotComplement = math.sqrt((1.0 - (normalDot * normalDot)))
 unbuckling = maximumUnbuckling
 if (dotComplement > 0.0):
  unbuckling = min((1.0 / dotComplement), maximumUnbuckling)
 basis.setToVector3((basis * unbuckling))

def unbuckleBasis ( basis , maximumUnbuckling , normal ) : normalDot = basis . dot ( normal ) dotComplement = math . sqrt ( ( 1.0 - ( normalDot * normalDot ) ) ) unbuckling = maximumUnbuckling if ( dotComplement > 0.0 ) : unbuckling = min ( ( 1.0 / dotComplement ) , maximumUnbuckling ) basis . setToVector3 ( ( basis * unbuckling ) )
unbuckle space .