Physics.P2

Class: Phaser.Physics.P2

Constructor

new P2(game, config)

This is your main access to the P2 Physics World.
From here you can create materials, listen for events and add bodies into the physics simulation.

Parameters
Name Type Argument Description
game Phaser.Game

Reference to the current game instance.

config object <optional>
登录查看完整内容