예제 #1
0
 public void UpdateParts()
 {
     if (Parent.CmpParts == null)
     {
         return;
     }
     if (Body == null)
     {
         return;
     }
     foreach (var part in Parent.CmpParts)
     {
         if (part.Construct != null)
         {
             sur.UpdatePart(part.Construct, part.Construct.Transform);
         }
     }
 }
예제 #2
0
 public void UpdateParts()
 {
     if (Parent.RigidModel == null)
     {
         return;
     }
     if (Body == null)
     {
         return;
     }
     foreach (var part in Parent.RigidModel.AllParts)
     {
         if (part.Construct != null)
         {
             sur.UpdatePart(part, part.LocalTransform);
         }
     }
     sur.FinishUpdatePart();
 }