photonstorm/phaser — pull request #90 by onedayitwillmake (2013-10-02 21:20:19+00:00)
Title: Dev

This pull request, makes it so that Arcade.Physics is optional on a Phaser.Sprite. By default it is enabled if no argument is passed so no change is required for existing code.

Adds a new property, arcadePhysicsEnabled via Phaser.Sprite defineProperty which when set will create the body (if none existed) and when disabled will destroy then null it.

Phaser.Sprite now checks if body is not null before calling functions on it
GameObjectFactory has been updated to reflect these changes as well.