Skip to content

Commit 7685067

Browse files
authored
Docs: Phaser.Physics.Arcade.Group#defaults
phaserjs#4171, phaserjs#5153
1 parent 0999824 commit 7685067

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/physics/arcade/PhysicsGroup.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
1515
* @classdesc
1616
* An Arcade Physics Group object.
1717
*
18-
* All Game Objects created by or added to this Group will automatically be given dynamic Arcade Physics bodies, if they have no body.
18+
* All Game Objects created by or added to this Group will automatically be given dynamic Arcade Physics bodies (if they have no body)
19+
* and the bodies will receive the Group's {@link Phaser.Physics.Arcade.Group#defaults default values}.
1920
*
2021
* Its static counterpart is {@link Phaser.Physics.Arcade.StaticGroup}.
2122
*
@@ -112,6 +113,8 @@ var PhysicsGroup = new Class({
112113
/**
113114
* Default physics properties applied to Game Objects added to the Group or created by the Group. Derived from the `config` argument.
114115
*
116+
* You can remove the default values by setting this property to `{}`.
117+
*
115118
* @name Phaser.Physics.Arcade.Group#defaults
116119
* @type {Phaser.Types.Physics.Arcade.PhysicsGroupDefaults}
117120
* @since 3.0.0

0 commit comments

Comments
 (0)