phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Update GetPoints.js

Open sB3p opened this issue 1 year ago • 0 comments

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: place_on_line_before

Example of how Phaser.GameObjects.GameObject will be placed on a line after this change: place_on_line

sB3p avatar Nov 13 '23 23:11 sB3p