public void Update(TimeSpan time) { if (RenderComponent != null) { var tr = GetTransform(); RenderComponent.Update(time, isstatic ? StaticPosition : tr.Transform(Vector3.Zero), tr); } for (int i = 0; i < Children.Count; i++) Children[i].Update(time); for (int i = 0; i < Components.Count; i++) Components[i].Update(time); }
public void Update(TimeSpan time) { if (RenderComponent != null) { if (Parent == null || Parent.RenderUpdate(this)) { var tr = GetTransform(); RenderComponent.Update(time, isstatic ? StaticPosition : Vector3.Transform(Vector3.Zero, tr), tr); } } for (int i = 0; i < Children.Count; i++) { Children[i].Update(time); } for (int i = 0; i < Components.Count; i++) { Components[i].Update(time); } }