public override IObiConstraintsBatch Clone() { var clone = new ObiTetherConstraintsBatch(this); clone.particleIndices.ResizeUninitialized(particleIndices.count); clone.maxLengthsScales.ResizeUninitialized(maxLengthsScales.count); clone.stiffnesses.ResizeUninitialized(stiffnesses.count); clone.particleIndices.CopyFrom(particleIndices); clone.maxLengthsScales.CopyFrom(maxLengthsScales); clone.stiffnesses.CopyFrom(stiffnesses); return(clone); }
public ObiTetherConstraintsBatch(ObiTetherConstraintsBatch source = null) : base(source) { }
public ObiTetherConstraintsBatch(ObiTetherConstraintsData constraints = null, ObiTetherConstraintsBatch source = null) : base(source) { m_Constraints = constraints; }