Richard Davey
1f8276ac76
Updated copyright year, company and author
2024-02-19 17:12:24 +00:00
Richard Davey
2489396d58
Updated docs
2024-01-31 17:15:38 +00:00
Richard Davey
0b32610e56
Updated version to 3.70
2023-11-10 15:04:01 +00:00
Richard Davey
304275dc7d
Merge pull request #6570 from Trissolo/feature/GeomLine-SetFromVectors
...
Added a new method: Phaser.Geom.Line#setFromObjects()
2023-11-08 16:15:14 +00:00
Richard Davey
5079f8e010
Merge pull request #6577 from Trissolo/fix/intersects-GetLineToPoints
...
Fix Geom.Intersects#GetLineToPoints
2023-11-08 16:12:34 +00:00
Trissolo
d33c83d27b
Remove unused code
2023-08-16 05:42:00 +02:00
Trissolo
d3c2afc9a5
The intersection test between the given Line and the line segment between the first and last point is no longer skipped
2023-08-09 06:54:22 +02:00
Trissolo
f4e0f018ba
Add Phaser.Geom.Line#setFromObjects()
2023-08-04 06:38:34 +02:00
Richard Davey
57c41cba72
Use Frame if the Mesh has one and not defined
2023-01-25 23:30:47 +00:00
Richard Davey
a5abae8f0a
Added setColor, scrollUV and scaleUV methods
2023-01-24 13:44:20 +00:00
Richard Davey
eb0731d3be
Added translated uv coords + scrollUV and scaleUV methods
2023-01-24 13:43:52 +00:00
Richard Davey
8abfcd2f6f
The GenerateVerts
function has a new optional parameter flipUV
which, if set, will flip the UV texture coordinates
2023-01-06 14:41:09 +00:00
Richard Davey
e4a4f30c27
Restored previous version
2023-01-06 13:54:52 +00:00
Richard Davey
3dbc513e9c
Debugging MergeRect
2023-01-05 18:46:23 +00:00
Richard Davey
f782576c18
Fixed jsdocs
2023-01-05 16:03:09 +00:00
Richard Davey
a30f6a1f92
Updated documentation
2023-01-05 15:35:59 +00:00
Richard Davey
f7195e6545
The GenerateVerts
function no longer errors if the verts and uvs arrays are not the same size and containsZ
is true
2023-01-05 14:57:52 +00:00
Richard Davey
a7282a17ec
Update docs
2023-01-03 13:14:21 +00:00
Richard Davey
468bf7821d
Updated copyright year
2023-01-02 17:36:27 +00:00
Richard Davey
ec18bf6ac7
Fixed url and updated math
2022-12-23 18:54:16 +00:00
Richard Davey
951964c19e
Update GetLineToLine.js
2022-12-22 00:54:10 +00:00
samme
868c299c62
Docs: correct GetShortestDistance()
...
Fixes #6322
2022-12-17 06:59:53 -08:00
Richard Davey
45c0c23f6f
Added origin to resize method
2022-12-08 16:17:10 +00:00
Richard Davey
c4655bfb6d
Changed to resize method
2022-12-07 18:28:35 +00:00
Richard Davey
7996f4eb9e
Removed un-needed method
2022-12-07 18:28:25 +00:00
Richard Davey
fbc15ccfff
The Vertex.update
method now returns this
to allow it to be chained.
2022-12-06 18:00:11 +00:00
Richard Davey
0d2cee6d97
Added transformIdentity
and update
methods
2022-12-05 18:21:39 +00:00
Richard Davey
65af3c0874
Don't abort of texture provided
2022-12-02 18:07:07 +00:00
Richard Davey
5f35c016f3
Upgrade Earcut
...
Earcut has been updated to version 2.2.4. This release improves performance by 10-15% and fixes 2 rare race conditions that could leave to infinite loops. Earcut is used internally by Graphics and Shape game objects when triangulating polygons for complex shapes.
2022-11-22 23:51:20 +00:00
Trissolo
822e1401cf
Replace the typedef of the last parameter with the more appropriate 'Phaser.Math.Vector2Like'
2022-10-26 08:58:55 +02:00
Trissolo
b9467f6f5e
If the 'out' parameter is not passed in, do not create an useless new Phaser.Geom.Point, because, having no external references, it will be unreachable.
2022-10-25 09:17:56 +02:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
Richard Davey
3c429088e4
Use the new isRay parameter
2021-10-28 15:01:51 +01:00
Richard Davey
7b976d6d8e
The Geom.Intersects.GetLineToPolygon
method has a new optional parameter isRay
. If true
it will treat the line parameter as a ray, if false, as a line segment (the default).
2021-10-28 15:01:51 +01:00
Richard Davey
d587b8f5a7
The Geom.Intersects.GetLineToPoints
method has a new optional parameter isRay
. If true
it will treat the line parameter as a ray, if false, as a line segment (the default).
2021-10-28 15:01:51 +01:00
Richard Davey
50b02e9cdf
The Geom.Intersects.GetLineToLine
method has a new optional parameter isRay
. If true
it will treat the first line parameter as a ray, if false, as a line segment (the default).
2021-10-28 15:01:51 +01:00
Richard Davey
b57afb45c9
Fixed eslint issues in #5701
2021-09-22 11:44:43 +01:00
Joshua Meyer
a0838c184f
dx1 !== 0 was an unnecessary restriction
...
In the previous version, if x1 == x2 the code was never able to detect an intersection even if there was one.
This limitation was because of the unnecessary division by dx1. With its removal it should work now.
2021-05-14 21:04:33 +02:00
Richard Davey
aaa66488dc
The Mesh
Game Object would incorrectly cull faces if the Camera scrolled. It now calculates the cull correctly, regardless of camera world position, zoom or rotation. Fix #5570
2021-04-13 14:44:46 +01:00
Richard Davey
4e2285fd05
Fixed docs
2021-04-13 14:44:38 +01:00
Richard Davey
f39c6d1ee6
Typo
2021-03-10 11:53:49 +00:00
Andrew Cunningham
36b3de1748
Make GenerateVertsResults verts
-> vertices
...
Update typedefs to match the new spelling.
2021-01-13 18:46:07 -05:00
Andrew Cunningham
56fc62a21a
Fix typo in GenerateVerts.js
...
The result contains `["verts"]`, but the caller expects [`["vertices"]`](d67c93646c/src/gameobjects/mesh/Mesh.js (L705)
). Better to expand the field name (IMO).
2021-01-13 18:36:33 -05:00
Richard Davey
c83622d349
Always return polygon, even if points <= 2.
2020-12-14 09:03:35 +00:00
Richard Davey
cb71fe35cd
Fixed name #5432
2020-12-07 17:10:25 +00:00
Rex
e7fd7d6804
Remove flipX argument
2020-11-29 18:00:12 +08:00
Rex
ed7a53cfa9
Add flipX, flipY optional arguments
...
Add flipX, flipY optional arguments to flip render result
2020-11-29 17:43:36 +08:00
Richard Davey
b97536fc31
Don't need to create a Point at all. #5407
2020-11-24 09:12:24 +00:00
Wiserim
a5212463bd
Fix: TriangleToLine() not checking start / end point of line properly.
2020-11-23 22:21:25 +01:00
Richard Davey
417f7684c3
More integer to number changes
2020-11-23 10:32:00 +00:00