In my game I have a Main class in which i am initializing starling framework by passing Game class like below
myStraling = new Starling(Game , stage);
In the game class I have Instances of Welcome class and InGame class these two classes extends starling.display.Sprite.I have a PhysicsHandling class seperately. Now i want to make instance of PhysicsHandling class in the InGame class. The physics handling class does not extend any class because it only does calculations. I have made its some variables public to position starling sprites accordingly.
My question is. Is it the right way to integrate physics in starling Performance wise .I mean is there a better way to do that