Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

My floor is falling down in 2.0


Yuri
 Share

Recommended Posts

Below is the code I used to create the floor in Panda.js v1.x The issue I seem to be having in 2.x is that the floor​ is now affected by physics/gravity and falls down. How could I make it stick in place?

this.world = new game.World(0, 2500);var floorBody = new game.Body({	position:	{		x: game.system.width / 2,		y: game.system.height 	},	collisionGroup: 1});var floorShape = new game.Rectangle(game.system.width, 50);floorBody.addShape(floorShape);this.world.addBody(floorBody);
Link to comment
Share on other sites

  • 1 month later...
 Share

  • Recently Browsing   0 members

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