Skip to content

Commit be29c69

Browse files
committed
Disable pointer constraint debug by default
1 parent 7aad8af commit be29c69

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/physics/matter-js/Factory.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,13 @@ var Factory = new Class({
511511
*/
512512
pointerConstraint: function (options)
513513
{
514+
if (options === undefined) { options = {} };
515+
516+
if (!options.hasOwnProperty('render'))
517+
{
518+
options.render = { visible: false };
519+
}
520+
514521
var pointerConstraint = new PointerConstraint(this.scene, this.world, options);
515522

516523
this.world.add(pointerConstraint.constraint);

0 commit comments

Comments
 (0)