W3cubDocs

/Phaser

Class: Phaser.Physics.P2.PointProxy

Constructor

new PointProxy(world, destination)

A PointProxy is an internal class that allows for direct getter/setter style property access to Arrays and TypedArrays.

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/PointProxy.js (Line 15)

Public Properties

mx : number

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

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

my : number

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

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

x : number

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

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

y : number

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

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

© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Phaser.Physics.P2.PointProxy.html