Set pivot
This commit is contained in:
parent
9774e9abe7
commit
08d0232e37
|
@ -54,6 +54,8 @@ export class SpriteInstance {
|
||||||
s.x -= this.frame.originX
|
s.x -= this.frame.originX
|
||||||
s.y -= this.frame.originY
|
s.y -= this.frame.originY
|
||||||
this.container.addChild(s)
|
this.container.addChild(s)
|
||||||
|
this.container.pivot.x -= this.frame.originX
|
||||||
|
this.container.pivot.y -= this.frame.originY
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user