Merge pull request #5130 from samme/docs/gameobject-body-type

Correct types for GameObject#body
This commit is contained in:
Richard Davey 2020-07-13 11:48:35 +01:00 committed by GitHub
commit b1ae96eb76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,7 +169,7 @@ var GameObject = new Class({
* If this Game Object is enabled for Arcade or Matter Physics then this property will contain a reference to a Physics Body.
*
* @name Phaser.GameObjects.GameObject#body
* @type {?(object|Phaser.Physics.Arcade.Body|MatterJS.BodyType)}
* @type {?(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody|MatterJS.BodyType)}
* @default null
* @since 3.0.0
*/