phaser
phaser copied to clipboard
Update GetPoints.js
This PR
- Adds a new feature
- Updates existing code
Fixes #6439 partially based on @AlitaStudio proposed solution.
This PR only applies to Geom.Line.GetPoints
calculation metioned in the issue. Actions.Spread
calculation is not affected by this PR.
Geom.Line.GetPoints
and Phaser.Actions.PlaceOnLine
are affected by this PR.
Merging this PR will potentially cause issues for users later on (after updating Phaser version) as this will change the x/y coords of GameObjects that are placed on a Phaser.Geom.Line
via Phaser.Actions.PlaceOnLine
.
Example of how Phaser.GameObjects.GameObject
were placed on a line before this change:
Example of how Phaser.GameObjects.GameObject
will be placed on a line after this change: