Carolina Posted September 21, 2015 Share Posted September 21, 2015 someone knows how to identify a rectangle within a body?example:this.myBody = new Phaser.Physics.Box2D.Body(this.game, null, this.rolyCenter.x, this.rolyCenter.y);this.myBody.addRectangle(2, rolySide, this.rolyRadius * Math.cos(angle), this.rolyRadius * Math.sin(angle), angle);this.myBody.addRectangle(2, rolySide, this.rolyRadius * Math.cos(angle), this.rolyRadius * Math.sin(angle), angle);if a object did make collision with the body containing the rectangles, How can I know that rectangle collision made the object? Link to comment Share on other sites More sharing options...
Recommended Posts