public override cForce copy() { KnockbackForce bs = new KnockbackForce(new cVector3()); bs.copy(this); return(bs); }
public override void copy(cForce pforce) { base.copy(pforce); if (!pforce.IsKindOf("KnockbackForce")) { return; } KnockbackForce pforcechild = (KnockbackForce)pforce; //copy fields here forceVector.copy(pforcechild.forceVector); count = pforcechild.count; }