Jump to content

Can't debug.body on a group!


nicwins
 Share

Recommended Posts

Hi, in my render function, I have the following:

render: function() {
      this.game.debug.body(this.player);  
      this.game.debug.body(this.redMonstarsGroup);
  },

Now, the player, has a little green box around him, however the monster (or the group of monsters) has nothing and I get a warning: " gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, texture.source);"

HOW TO I GET A LITTLE GREEN DEBUG BODY ON A GROUP OF OBJECTS?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...