Search the Community

Showing results for tags 'enable physics'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 2 results

  1. When i try to enable p2 physics for a sprite i get Uncaught TypeError: Cannot read property 'set' of undefined. for the object.anchor.set(0.5); of @method Phaser.Physics.P2#enableBody. Please check the link above. Also how do i go about debugging in Sandbox? I have tried putting breakpoints in VM#### but a new one starts everytime i refresh or change something so that didn't work.
  2. I'm getting stuck with this issue. I've updated my projects from phaser 2.2 to current 2.3.0. and every collision isn't working any more. I'm using the arcade.physics system. Set up is (shortened): the collision handler does not fire. Group 1this.wave =;this.wave.enableBody = true;this.wave.physicsBodyType = Phaser.Physics.ARCADE;game.physics.enable(this.wave, Phaser.Physics.ARCADE);Group 2this.player =;this.player.enableBody = true;this.player.physicsBodyType = Phaser.Physics.ARCADE;game.physics.enable(this.player, Phaser.Physics.ARCADE);into update func:game.physics.arcade.collide( this.player, this.wave, this.collision, null, this);does not detect anything.Same goes with sprite vs. sprite, worked before.I tried different configurations since there are multiple ways and I do not know which one is actually the most updated:wave_obj.physicsBodyType = Phaser.Physics.ARCADE;game.physics.enable(wave_obj, Phaser.Physics.ARCADE);;game.physics.arcade.enable( wave_obj );console output contains: type: 0 and physicsType: 0 - is that correct?c.Sprite {type: 0, physicsType: 0, position: c.Point, scale: c.Point, transformCallback: null…}Any ideas? suggestions, I've tried every syntax written above. with phaser 2.2 it worked. also tried: game.physics.startSystem(Phaser.Physics.ARCADE);game.physics.arcade.TOP_BOTTOM;with sprite vs spritegame.physics.enable( [ this.racer, wave_obj ], Phaser.Physics.ARCADE);game.physics.arcade.overlap instead of game.physics.arcade.collideregards