Component.Delta

Class: Phaser.Component.Delta

Constructor

new Delta()

The Delta component provides access to delta values between the Game Objects current and previous position.

Source code: gameobjects/components/Delta.js (Line 12)

Public Properties

[readonly] deltaX : number

Returns the delta x value. The difference between world.x now and in the previous frame.

The value will be positive if the Game Object has moved to the right or negative if to the left.

Source code: gameobjects/components/Delta.js (Line 24)

[readonly] deltaY : number

Returns the delta y value. The difference between world.y now and in the previous frame.

The value will be positive if the Game Object has moved down or negative if up.

Source code: gameobjects/components/Delta.js (Line 42)

[readonly] deltaZ : number

Returns the delta z value. The difference between rotation now and in the previous frame. The delta value.

Source code: gameobjects/components/Delta.js (Line 58)

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部