friendlysam.parts.ConstraintCollection.add

ConstraintCollection.add(addition)

Add a constraint function, or an iterable of constraint functions.

Parameters:addition (callable or iterable of callables) – Constraint function(s) to add.

Examples

c = ConstraintCollection(owner) c.add(constraint_func) c.add([func1, func2])

c += constraint_func c += [func1, func2]