public override void FixedUpdate(TimeSpan time) { if (partRemoved) { sur.FinishUpdatePart(); partRemoved = true; } base.FixedUpdate(time); }
public override void FixedUpdate(double time) { if (partRemoved) { sur.FinishUpdatePart(); partRemoved = true; } if (Body.Active) { Parent.SetLocalTransform(Body.Transform, true); } base.FixedUpdate(time); }
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); } } sur.FinishUpdatePart(); }
public void DisablePart(Utf.Cmp.Part part) { sur.RemovePart(part); sur.FinishUpdatePart(); }