Navigation
These archived docs are for Phaser 2.4.4 Phaser 3 docs can be found on newdocs.phaser.io.
Phaser CE docs can be found on the Phaser CE Documentation site.

Constructor

Phaser.Physics.P2. InversePointProxy

new InversePointProxy(world, destination)

A InversePointProxy is an internal class that allows for direct getter/setter style property access to Arrays and TypedArrays but inverses the values on set.

Parameters
Name Type Description
world Phaser.Physics.P2

A reference to the P2 World.

destination any

The object to bind to.

Source code: physics/p2/InversePointProxy.js (Line 15)

Public Properties

mx : number

The x property of this InversePointProxy get and set in meters.

Source code: physics/p2/InversePointProxy.js (Line 64)

my : number

The y property of this InversePointProxy get and set in meters.

Source code: physics/p2/InversePointProxy.js (Line 84)

x : number

The x property of this InversePointProxy get and set in pixels.

Source code: physics/p2/InversePointProxy.js (Line 24)

y : number

The y property of this InversePointProxy get and set in pixels.

Source code: physics/p2/InversePointProxy.js (Line 44)