Home
News
Learn
Download
Examples
Community
Plugins
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Physics.Arcade.Body
getBounds(obj)
Description:
Copies the coordinates of this Body's edges into an object.
Parameters:
name
type
description
obj
Phaser.Types.Physics.Arcade.ArcadeBodyBounds
An object to copy the values into.
Returns:
Description:
An object with {x, y, right, bottom}.
Type:
Phaser.Types.Physics.Arcade.ArcadeBodyBounds
Since:
3.0.0
Source:
src/physics/arcade/Body.js
(Line
1418
)
Possible examples