mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Added showBody and showVelocity as config options
This commit is contained in:
parent
67cba936da
commit
15a749d8ea
2 changed files with 4 additions and 2 deletions
|
@ -55,8 +55,8 @@ var Body = new Class({
|
|||
this.checkAgainst = TYPE.NONE;
|
||||
this.collides = COLLIDES.NEVER;
|
||||
|
||||
this.debugShowBody = true;
|
||||
this.debugShowVelocity = true;
|
||||
this.debugShowBody = world.defaults.debugShowBody;
|
||||
this.debugShowVelocity = world.defaults.debugShowVelocity;
|
||||
this.debugBodyColor = world.defaults.bodyDebugColor;
|
||||
|
||||
// min 44 deg, max 136 deg
|
||||
|
|
|
@ -40,6 +40,8 @@ var World = new Class({
|
|||
this.debugGraphic;
|
||||
|
||||
this.defaults = {
|
||||
debugShowBody: GetFastValue(config, 'debugShowBody', true),
|
||||
debugShowVelocity: GetFastValue(config, 'debugShowVelocity', true),
|
||||
bodyDebugColor: GetFastValue(config, 'debugBodyColor', 0xff00ff),
|
||||
velocityDebugColor: GetFastValue(config, 'debugVelocityColor', 0x00ff00),
|
||||
maxVelocityX: GetFastValue(config, 'maxVelocityX', 100),
|
||||
|
|
Loading…
Reference in a new issue