void IUpdatableManager.update() { _isUpdating = true; // loop backwards so we can remove completed tweens for (var i = _activeTweens.length - 1; i >= 0; --i) { var tween = _activeTweens.buffer[i]; if (tween.tick()) { _tempTweens.add(tween); } } _isUpdating = false; // kill the dead Tweens for (var i = 0; i < _tempTweens.length; i++) { _tempTweens.buffer[i].recycleSelf(); _activeTweens.remove(_tempTweens[i]); } _tempTweens.clear(); }
/// <summary> /// removes the Particle from the Composite /// </summary> /// <param name="particle">Particle.</param> public void removeParticle(Particle particle) { particles.remove(particle); }
/// <summary> /// removes a Constraint from the Composite /// </summary> /// <param name="constraint">Constraint.</param> public void removeConstraint(Constraint constraint) { _constraints.remove(constraint); }
/// <summary> /// removes a Composite from the simulation /// </summary> /// <param name="composite">Composite.</param> public void removeComposite(Composite composite) { _composites.remove(composite); }