internal void removeControl(BEPUikControl control) { BEPUikSolver solver; if (namedSolvers.TryGetValue(control.Bone.SolverName, out solver)) { solver.removeControl(control); } else { SimObjectErrorManager.AddAndLogError(new SimObjectError() { Subsystem = BEPUikInterface.PluginName, ElementName = control.Name, Type = control.GetType().Name, SimObject = control.Owner.Name, Message = String.Format("Cannot find an IKSolver named '{0}' Control not added to scene.", control.Bone.SolverName) }); } }
internal void removeControl(BEPUikControl control) { controls.Remove(control); solveControls.Remove(control.IKControl); control.MovedThisTick = false; }
internal void addControl(BEPUikControl control) { controls.Add(control); solveControls.Add(control.IKControl); }