mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Specify type of ArcadeSprite.body
Do this by overwriting this.body in ArcadeSprite constructor.
This commit is contained in:
parent
8124ba9b86
commit
ff38588285
1 changed files with 10 additions and 0 deletions
|
@ -83,6 +83,16 @@ var ArcadeSprite = new Class({
|
|||
function ArcadeSprite (scene, x, y, texture, frame)
|
||||
{
|
||||
Sprite.call(this, scene, x, y, texture, frame);
|
||||
|
||||
/**
|
||||
* If this Game Object is enabled for physics then this property will contain a reference to a Physics Body.
|
||||
*
|
||||
* @name Phaser.Physics.Arcade.Sprite#body
|
||||
* @type {?Phaser.Physics.Arcade.Body}
|
||||
* @default null
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.body = null;
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue