DegGa Posted September 15, 2016 Share Posted September 15, 2016 Hey guys! I just want to ask two questions about the physics system in phaser. 1- Should i do "game.physics.startSystem(Phaser.Physics.ARCADE)" when i want to apply the arcade physics? I see a lot of people doing this in their games, but what i know i that the arcade physics system start automaticaly. 2- What is the difference between "game.physics.arcade.enable()" and "game.physics.arcade.enableBody()". Thanks Link to comment Share on other sites More sharing options...
samme Posted September 16, 2016 Share Posted September 16, 2016 Yes, `startSystem(Phaser.Physics.ARCADE)` is unnecessary as it's already running. You can call `arcade.enable` on a Sprite, Group, or an array of Sprites and Groups. It calls `arcade.enableBody` on each Sprite it finds. DegGa 1 Link to comment Share on other sites More sharing options...
DegGa Posted September 16, 2016 Author Share Posted September 16, 2016 Oh thanks a lot! Link to comment Share on other sites More sharing options...
DegGa Posted September 16, 2016 Author Share Posted September 16, 2016 Just another question, does `startSystem(Phaser.Physics.ARCADE)` have some performence issues?? I think calling it will start the entire Arcade system from the beginning. Link to comment Share on other sites More sharing options...
samme Posted September 17, 2016 Share Posted September 17, 2016 I guess so, you waste a bit of time and memory. But it's pretty small. DegGa 1 Link to comment Share on other sites More sharing options...
Recommended Posts