Class: Delta

Phaser.Component. Delta

new Delta()

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

Source:
src/gameobjects/components/Delta.js line 12

Members

<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.

Type:
  • number
Source:
src/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.

Type:
  • number
Source:
src/gameobjects/components/Delta.js line 41

<readonly> deltaZ : number

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

Type:
  • number
Source:
src/gameobjects/components/Delta.js line 56

phaser-ce@2.20.1 is on GitHub and NPM

Documentation generated by JSDoc 3.6.11 on 2024-10-05 using Tomorrow.