コード例 #1
0
        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)
                });
            }
        }
コード例 #2
0
 internal void removeControl(BEPUikControl control)
 {
     controls.Remove(control);
     solveControls.Remove(control.IKControl);
     control.MovedThisTick = false;
 }
コード例 #3
0
 internal void addControl(BEPUikControl control)
 {
     controls.Add(control);
     solveControls.Add(control.IKControl);
 }