Esempio n. 1
0
 private static bool IsJointExpired(Joint joint)
 {
     if (joint.Lifetime.IsExpired)
     {
         joint.OnRemovedInternal();
         return true;
     }
     return false;
 }
Esempio n. 2
0
 /// <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);
     }
 }
Esempio n. 3
0
 protected internal abstract void CheckJoint(Joint joint);