MCPcopy Index your code
hub / github.com/phaserjs/phaser / setPosition

Method setPosition

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

* Sets the position of this Game Object. * @param x The x position of this Game Object. Default 0. * @param y The y position of this Game Object. If not set it will use the `x` value. Default x. * @param z The z position of this Game Object. Default

(x?: number, y?: number, z?: number, w?: number)

Source from the content-addressed store, hash-verified

20453 * @returns This Game Object instance.
20454 */
20455 setPosition(x?: number, y?: number, z?: number, w?: number): this;
20456 /**
20457 * Copies an object's coordinates to this Game Object's position.
20458 * @param source An object with numeric 'x', 'y', 'z', or 'w' properties. Undefined values are not copied.

Callers 15

GridAlignFunction · 0.80
Tilemap.jsFile · 0.80
MatterSprite.jsFile · 0.80
MatterImage.jsFile · 0.80
MatterPhysics.jsFile · 0.80
Transform.jsFile · 0.80
Bodies.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected