Merge pull request #5387 from samme/docs/static-body

Docs: StaticBody#touching etc.
This commit is contained in:
Richard Davey 2020-11-09 17:06:57 +00:00 committed by GitHub
commit 6c69cf3627
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,7 +372,8 @@ var StaticBody = new Class({
this.checkCollision = { none: false, up: true, down: true, left: true, right: true };
/**
* Whether this StaticBody has ever collided with another body and in which direction.
* This property is kept for compatibility with Dynamic Bodies.
* Avoid using it.
*
* @name Phaser.Physics.Arcade.StaticBody#touching
* @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}
@ -381,7 +382,9 @@ var StaticBody = new Class({
this.touching = { none: true, up: false, down: false, left: false, right: false };
/**
* Whether this StaticBody was colliding with another body during the last step or any previous step, and in which direction.
* This property is kept for compatibility with Dynamic Bodies.
* Avoid using it.
* The values are always false for a Static Body.
*
* @name Phaser.Physics.Arcade.StaticBody#wasTouching
* @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}
@ -390,7 +393,8 @@ var StaticBody = new Class({
this.wasTouching = { none: true, up: false, down: false, left: false, right: false };
/**
* Whether this StaticBody has ever collided with a tile or the world boundary.
* This property is kept for compatibility with Dynamic Bodies.
* Avoid using it.
*
* @name Phaser.Physics.Arcade.StaticBody#blocked
* @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}