@@ -17,6 +17,9 @@ var Group = require('../../gameobjects/group/Group');
1717 * @property {boolean } [collideWorldBounds=false] - Sets {@link Phaser.Physics.Arcade.Body#collideWorldBounds}.
1818 * @property {number } [accelerationX=0] - Sets {@link Phaser.Physics.Arcade.Body#acceleration acceleration.x}.
1919 * @property {number } [accelerationY=0] - Sets {@link Phaser.Physics.Arcade.Body#acceleration acceleration.y}.
20+ * @property {boolean } [allowDrag=true] - Sets {@link Phaser.Physics.Arcade.Body#allowDrag}.
21+ * @property {boolean } [allowGravity=true] - Sets {@link Phaser.Physics.Arcade.Body#allowGravity}.
22+ * @property {boolean } [allowRotation=true] - Sets {@link Phaser.Physics.Arcade.Body#allowRotation}.
2023 * @property {number } [bounceX=0] - Sets {@link Phaser.Physics.Arcade.Body#bounce bounce.x}.
2124 * @property {number } [bounceY=0] - Sets {@link Phaser.Physics.Arcade.Body#bounce bounce.y}.
2225 * @property {number } [dragX=0] - Sets {@link Phaser.Physics.Arcade.Body#drag drag.x}.
@@ -40,6 +43,9 @@ var Group = require('../../gameobjects/group/Group');
4043 * @property {boolean } setCollideWorldBounds - [description]
4144 * @property {number } setAccelerationX - [description]
4245 * @property {number } setAccelerationY - [description]
46+ * @property {boolean } setAllowDrag - [description]
47+ * @property {boolean } setAllowGravity - [description]
48+ * @property {boolean } setAllowRotation - [description]
4349 * @property {number } setBounceX - [description]
4450 * @property {number } setBounceY - [description]
4551 * @property {number } setDragX - [description]
@@ -133,6 +139,9 @@ var PhysicsGroup = new Class({
133139 setCollideWorldBounds : GetFastValue ( config , 'collideWorldBounds' , false ) ,
134140 setAccelerationX : GetFastValue ( config , 'accelerationX' , 0 ) ,
135141 setAccelerationY : GetFastValue ( config , 'accelerationY' , 0 ) ,
142+ setAllowDrag : GetFastValue ( config , 'allowDrag' , true ) ,
143+ setAllowGravity : GetFastValue ( config , 'allowGravity' , true ) ,
144+ setAllowRotation : GetFastValue ( config , 'allowRotation' , true ) ,
136145 setBounceX : GetFastValue ( config , 'bounceX' , 0 ) ,
137146 setBounceY : GetFastValue ( config , 'bounceY' , 0 ) ,
138147 setDragX : GetFastValue ( config , 'dragX' , 0 ) ,
0 commit comments