@Override
public void prepare(final ParticleSystem system) {
_line.setOrigin(_axis.getOrigin());
_line.setDirection(_axis.getDirection());
final ReadOnlyMatrix3 mat = system.getEmitterTransform().getMatrix();
if (_transformWithScene && !mat.isIdentity()) {
final Vector3 temp = Vector3.fetchTempInstance();
mat.applyPost(_line.getOrigin(), temp);
_line.setOrigin(temp);
mat.applyPost(_line.getDirection(), temp);
_line.setDirection(temp);
Vector3.releaseTempInstance(temp);
}
if (_type == VT_CYLINDER) {
_rot.fromAngleAxis(-_divergence, _line.getDirection());