Skip to content

Commit 4466f28

Browse files
committed
Updated log
1 parent 9f9c7de commit 4466f28

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ We have refactored the Animation API to make it more consistent with the rest of
9797

9898
My thanks to the following for helping with the Phaser 3 Examples, Docs and TypeScript definitions, either by reporting errors, fixing them or helping author the docs:
9999

100-
@gabegordon @melissaelopez @samid737 @nbs @tgrajewski @pagesrichie @hexus @mbrickn @erd0s @icbat @Matthew-Herman
100+
@gabegordon @melissaelopez @samid737 @nbs @tgrajewski @pagesrichie @hexus @mbrickn @erd0s @icbat @Matthew-Herman @ampled
101101

102102

103103

src/physics/arcade/StaticBody.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,32 @@ var StaticBody = new Class({
426426
return this;
427427
},
428428

429+
/**
430+
* [description]
431+
*
432+
* @method Phaser.Physics.Arcade.StaticBody#setOffset
433+
* @since 3.4.0
434+
*
435+
* @param {number} x - [description]
436+
* @param {number} y - [description]
437+
*
438+
* @return {Phaser.Physics.Arcade.StaticBody} This Static Body object.
439+
*/
440+
setOffset: function (x, y)
441+
{
442+
if (y === undefined) { y = x; }
443+
444+
this.world.staticTree.remove(this);
445+
446+
this.offset.set(x, y);
447+
448+
this.updateCenter();
449+
450+
this.world.staticTree.insert(this);
451+
452+
return this;
453+
},
454+
429455
/**
430456
* [description]
431457
*

0 commit comments

Comments
 (0)