
In the Ballz example where iX and iY are declared as vars owned by the model, I have created 2 global vars, mX and mY, and everywhere in the xml where iX, iY are touched, I do the same thing with mX and mY.
And it does not work - only getting 1 model instance where there should be 30. Am checking values with RenderText and mX and mY are behaving.
It is behaving as though
CurrentModel.Position.X += 2*App.DeltaTime * (ballsPosition[mX, mY, X_COORD] - CurrentModel.Position.X); //Model.OnUpdate
the model cannot use global vars to set its position, but this does not compute ... global = global, right?
Not sure whether there is enough info here but thoughts appreciated,
Regards,
Mic