Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Physics.Matter.Image
getVelocity()
Description:
Gets the current linear velocity of the physics body.
Returns:
Description:
The current linear velocity of the body.
Type:
Phaser.Types.Math.Vector2Like
Inherited from:
Phaser.Physics.Matter.Components.Velocity#getVelocity
Since:
3.60.0
Source:
src/physics/matter-js/components/Velocity.js
(Line
75
)
Possible examples