MCPcopy
hub / github.com/phaserjs/phaser / setOrigin

Method setOrigin

types/phaser.d.ts:19624–19624  ·  view source on GitHub ↗

* Sets the origin of this Game Object. * * The values are given in the range 0 to 1. * @param x The horizontal origin value. Default 0.5. * @param y The vertical origin value. If not defined it will be set to the value of `x`. Defa

(x?: number, y?: number)

Source from the content-addressed store, hash-verified

19622 * @returns This Game Object instance.
19623 */
19624 setOrigin(x?: number, y?: number): this;
19625 /**
19626 * Sets the origin of this Game Object based on the Pivot values in its Frame.
19627 * If the Frame has a custom pivot point defined, the origin is set to match it.

Callers 15

GridAlign.jsFile · 0.80
MatterSprite.jsFile · 0.80
MatterImage.jsFile · 0.80
SetBody.jsFile · 0.80
DynamicTexture.jsFile · 0.80
TextureManager.jsFile · 0.80
BuildGameObjectFunction · 0.80
BitmapText.jsFile · 0.80
TextureCrop.jsFile · 0.80
Texture.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected