Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Physics.Matter.Sprite
setVelocityY(y)
Description:
Sets vertical velocity of the physics body.
Parameters:
name
type
description
y
number
The vertical velocity value.
Returns:
Description:
This Game Object instance.
Type:
Phaser.Physics.Matter.Sprite
Inherited from:
Phaser.Physics.Matter.Components.Velocity#setVelocityY
Since:
3.0.0
Source:
src/physics/matter-js/components/Velocity.js
(Line
36
)
Possible examples