Bikas Posted February 28, 2017 Share Posted February 28, 2017 Is it possible to disable or remove physics completely? No bodies, no collisions, no updates. Link to comment Share on other sites More sharing options...
ldd Posted February 28, 2017 Share Posted February 28, 2017 physics are opt-in, not opt-out. If you do not need physics, just don't use them. On the other hand, aer you asking about disabling physics AFTER enabling them before? Link to comment Share on other sites More sharing options...
Bikas Posted February 28, 2017 Author Share Posted February 28, 2017 I didn't enable or add physics at any point, yet i received errors from PhysicsBody.preUpdate. So i assumed that physics are enabled by default. Maybe the better question would be how to create Phaser game without physics? Link to comment Share on other sites More sharing options...
samme Posted February 28, 2017 Share Posted February 28, 2017 3 hours ago, Bikas said: I didn't enable or add physics at any point, yet i received errors from PhysicsBody.preUpdate That's not normal, I would try to fix that first. Link to comment Share on other sites More sharing options...
3ddy Posted March 1, 2017 Share Posted March 1, 2017 11 hours ago, Bikas said: Maybe the better question would be how to create Phaser game without physics? You can make custom Phaser build -> https://phaser.io/tutorials/creating-custom-phaser-builds Link to comment Share on other sites More sharing options...
Bikas Posted March 2, 2017 Author Share Posted March 2, 2017 Found the issue. I was adding Sprite via container.children.push and it threw an error while doing preUpdate. Can't do that. Must use Phaser Groups throughout. Link to comment Share on other sites More sharing options...
Recommended Posts