You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Container.getWorldPoint() / getLocalPoint() throw "tempMatrix.applyITRS is not a function" in 4.2.1 #7388
Phaser 4.2.1: Calling container.getWorldPoint(x, y) or container.getLocalPoint(x, y) throws:
TypeError: tempMatrix.applyITRS is not a function at Container.getWorldTransformMatrix (Transform.js:517) at Container.getWorldPoint (Transform.js:627) at Container.getLocalPoint (Transform.js:584)
Root cause: getWorldTransformMatrix() creates new TransformMatrix() but the instance lacks applyITRS at runtime (method exists in source but not on constructed object).
Workaround: Manual transform walking up parentContainer chain
See getWorldPointManual/getLocalPointManual in this commit: FreezingMoon/AncientBeast@516f4b41
getWorldPoint doesn't take x and y
its signature is getWorldPoint(point, tempMatrix, parentMatrix) and it returns the object's own world position
so getWorldPoint(0, 0) passes 0 as tempMatrix and that's the applyITRS is not a function
it only shows up when the object is inside a container because that's the only path that touches tempMatrix
checked against master with a container inside a container at (100,100) and (50,50):
getWorldPoint(0, 0) -> tempMatrix.applyITRS is not a function
getWorldPoint() -> { x: 150, y: 150 }
getLocalPoint(200, 200) -> { x: 50, y: 50 }
Activity
samme commentedon Sep 30, 2026
This should work without errors:
vtxe02023274 commentedon Oct 21, 2026
getWorldPointdoesn't take x and yits signature is
getWorldPoint(point, tempMatrix, parentMatrix)and it returns the object's own world positionso
getWorldPoint(0, 0)passes0astempMatrixand that's theapplyITRS is not a functionit only shows up when the object is inside a container because that's the only path that touches
tempMatrixchecked against master with a container inside a container at (100,100) and (50,50):
to turn a local point into world space:
getLocalPoint(x, y)is the right call the other way round and works hereif it still throws for you can you paste the exact call