protected void SetConfig(SoftBody sb) { sb.Cfg.AeroModel = this.AeroModel; sb.Cfg.DF = this.DynamicFrictionCoefficient; sb.Cfg.DP = this.DampingCoefficient; sb.Cfg.PR = this.PressureCoefficient; sb.Cfg.LF = this.LiftCoefficient; sb.Cfg.VC = this.VolumeConservation; sb.Cfg.Collisions |= FCollisions.VFSS; sb.Cfg.Chr = this.RigidContactHardness; sb.Cfg.Shr = this.SoftContactHardness; sb.Cfg.DG = this.DragCoefficient; sb.Cfg.Ahr = this.AnchorHardness; if (this.IsVolumeMass) { sb.SetVolumeMass(this.Mass); } else { sb.SetTotalMass(this.Mass, false); } if (this.GenerateBendingConstraints) { sb.GenerateBendingConstraints(this.BendingDistance); } }