I'm trying to update an object position stream by combining the speed stream with it and publishing the new position in that position stream, I'm doing this by subscribing to the combined stream in Start():
Observable.CombineLatest(position_stream, speed_stream, (position, speed) =>
{
return position + speed;
}).Subscribe(a => new_position = a);
and publishing the new position in Update():
position_stream.OnNext(new_position);
is this approach compatible with reactive programming paradigm or it's abusing rx operators with an imperative mindset? if so can someone help me to find the right way it should be done.