mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Disable pointer constraint debug by default
This commit is contained in:
parent
7aad8afa02
commit
be29c69a8c
1 changed files with 7 additions and 0 deletions
|
@ -511,6 +511,13 @@ var Factory = new Class({
|
|||
*/
|
||||
pointerConstraint: function (options)
|
||||
{
|
||||
if (options === undefined) { options = {} };
|
||||
|
||||
if (!options.hasOwnProperty('render'))
|
||||
{
|
||||
options.render = { visible: false };
|
||||
}
|
||||
|
||||
var pointerConstraint = new PointerConstraint(this.scene, this.world, options);
|
||||
|
||||
this.world.add(pointerConstraint.constraint);
|
||||
|
|
Loading…
Reference in a new issue