Nez.Portable/Physics/Verlet/Composites/Composite.cs
/// <summary>
/// adds a Constraint to the Composite
/// </summary>
/// <returns>The constraint.</returns>
/// <param name="constraint">Constraint.</param>
/// <typeparam name="T">The 1st type parameter.</typeparam>
adds a Constraint to the Composite
adds a Constraint to the Composite
public T addConstraint<T>(T constraint)
            where T : Constraint
        {
            _constraints.add(constraint);
            constraint.composite = this;
            return constraint;
        }
public T addConstraint < T > ( T constraint ) where T : Constraint { _constraints . add ( constraint ) ; constraint . composite = this ; return constraint ; }
adds a Constraint to the Composite
adds a Constraint to the Composite
None
constraint
T
None
typeparam
The 1st type parameter.
The 1st type parameter .