public static CollisionFormula createCollision ( Xml node ) { Check . notNull ( node ) ; final String name = node . readString ( ATT_NAME ) ; final CollisionRange range = CollisionRangeConfig . imports ( node . getChild ( CollisionRangeConfig . NODE_RANGE ) ) ; final CollisionFunction function = CollisionFunctionConfig . imports ( node ) ; final CollisionConstraint constraint = CollisionConstraintConfig . imports ( node ) ; return new CollisionFormula ( name , range , function , constraint ) ; }
Create a collision formula from its node .