mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Docs: note velocity units
Phaser.Physics.Arcade.Components.Velocity
This commit is contained in:
parent
e1d23b98c0
commit
fbc7f57c28
1 changed files with 6 additions and 6 deletions
|
@ -20,8 +20,8 @@ var Velocity = {
|
|||
* @method Phaser.Physics.Arcade.Components.Velocity#setVelocity
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} x - The horizontal velocity of the body. Positive values move the body to the right, while negative values move it to the left.
|
||||
* @param {number} [y=x] - The vertical velocity of the body. Positive values move the body down, while negative values move it up.
|
||||
* @param {number} x - The horizontal velocity of the body, in pixels per second. Positive values move the body to the right, while negative values move it to the left.
|
||||
* @param {number} [y=x] - The vertical velocity of the body, in pixels per second. Positive values move the body down, while negative values move it up.
|
||||
*
|
||||
* @return {this} This Game Object.
|
||||
*/
|
||||
|
@ -40,7 +40,7 @@ var Velocity = {
|
|||
* @method Phaser.Physics.Arcade.Components.Velocity#setVelocityX
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} x - The new horizontal velocity.
|
||||
* @param {number} x - The new horizontal velocity, in pixels per second.
|
||||
*
|
||||
* @return {this} This Game Object.
|
||||
*/
|
||||
|
@ -59,7 +59,7 @@ var Velocity = {
|
|||
* @method Phaser.Physics.Arcade.Components.Velocity#setVelocityY
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} y - The new vertical velocity of the body.
|
||||
* @param {number} y - The new vertical velocity, in pixels per second.
|
||||
*
|
||||
* @return {this} This Game Object.
|
||||
*/
|
||||
|
@ -76,8 +76,8 @@ var Velocity = {
|
|||
* @method Phaser.Physics.Arcade.Components.Velocity#setMaxVelocity
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} x - The new maximum horizontal velocity.
|
||||
* @param {number} [y=x] - The new maximum vertical velocity.
|
||||
* @param {number} x - The new maximum horizontal velocity, in pixels per second.
|
||||
* @param {number} [y=x] - The new maximum vertical velocity, in pixels per second.
|
||||
*
|
||||
* @return {this} This Game Object.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue