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); } } }
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(); }