Jump to content

Move rotating rect. body from (localX,localY) to (worldX,worldY)


Schludi
 Share

Recommended Posts

Hi!

 

Is there a method that moves a rotating box2d rectangle body i.e. from it's local (7,10) to world (100,100) coordinates that suggests the box2d physics?

 

    var arm = new Phaser.Physics.Box2D.Body(this.game, null, 10, 220, 2);
    arm.setRectangle(15, 60, 0, 0, 0);
 
With bests Bjoern
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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