public static void exports ( Xml root , CollisionFormula formula ) { Check . notNull ( root ) ; Check . notNull ( formula ) ; final Xml node = root . createChild ( NODE_FORMULA ) ; node . writeString ( ATT_NAME , formula . getName ( ) ) ; CollisionRangeConfig . exports ( node , formula . getRange ( ) ) ; CollisionFunctionConfig . exports ( node , formula . getFunction ( ) ) ; CollisionConstraintConfig . exports ( node , formula . getConstraint ( ) ) ; }
Export the current formula data to the formula node .