private static bool IsJointExpired(Joint joint) { if (joint.Lifetime.IsExpired) { joint.OnRemovedInternal(); return true; } return false; }
/// <summary> /// Adds a Joint to the pending queue and will be truly added on a call to Update. /// </summary> /// <param name="item">The Joint to be added.</param> public void AddJoint(Joint item) { CheckChild(item); solver.CheckJoint(item); lock (pendingJoints) { pendingJoints.Add(item); } }
protected internal abstract void CheckJoint(Joint joint);