@Override protected void onUpdate(GameObject object, Vector3 offset, float delta) { if (effect == null) { effect = particleManager.create(object.getPosition(), type); } trans.set(offset.add(object.getPosition()), object.getOrientation()); effect.setTransform(trans); }
public void update(float delta) { e.setTransform(body.getWorldTransform()); }