Commit graph

376 commits

Author SHA1 Message Date
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
Richard Davey
02c34cd64e Replace integer with number 2020-11-23 10:22:13 +00:00
Richard Davey
afbbf2aee0 JSDoc fixes 2020-11-20 16:30:05 +00:00
Richard Davey
4f980c773a Update Simplify.js 2020-11-20 15:59:07 +00:00
Richard Davey
df3b7d5f79 JSDoc fixes 2020-11-20 15:47:35 +00:00
Richard Davey
17e7f2d75b Moved Model class 2020-11-20 15:31:34 +00:00
Richard Davey
774b6987c4 Added Face.alpha getter and setter 2020-10-21 10:14:56 +01:00
Richard Davey
653c2ee600 Parallel and divide by zero fix 2020-10-15 18:08:35 +01:00
Richard Davey
37c9b0884d Updated Polygon points type. Fix #5357 2020-10-15 12:01:13 +01:00
Richard Davey
c03b5af079 Use mesh size 2020-10-15 10:09:02 +01:00
Richard Davey
020cfab2d6 Fixed issue with no mesh specified and texture getting 2020-10-15 09:58:54 +01:00
Richard Davey
e79ec0c96c Generate Grid can now calculate w/h based on ortho texture 2020-10-14 16:32:06 +01:00
Richard Davey
5639862010 Update GenerateGridVerts.js 2020-10-09 17:20:40 +01:00
Richard Davey
2801d3d804 Added setUVs method 2020-10-09 16:22:27 +01:00
Richard Davey
acfb6c469f Much more powerful grid generation now 2020-10-09 16:22:19 +01:00
Richard Davey
50a0f0705f Face is now responsible for determining if it can be rendered, or not. Split the update and load process into two. 2020-10-09 11:55:00 +01:00
Richard Davey
f77a5de32c Geom.Mesh.RotateFace is a new function that will rotate a Face by a given amount, based on an optional center of rotation. 2020-10-09 11:53:57 +01:00
Richard Davey
bf8cd60aab Added ability to rotate data on import 2020-10-08 15:53:13 +01:00
Richard Davey
c05cec3ba0 Added JSDocs 2020-10-08 14:40:32 +01:00
Richard Davey
79a1264f8b Fixed property name 2020-10-08 14:40:25 +01:00
Richard Davey
e46ba609a8 Expose new functions 2020-10-08 13:24:09 +01:00
Richard Davey
2f85c8a8ba Added normals parameters 2020-10-08 13:24:01 +01:00
Richard Davey
8838781aa1 Create GenerateGridVerts.js 2020-10-08 13:23:24 +01:00
Richard Davey
d2ea1c45c3 Create GenerateObjVerts.js 2020-10-08 13:23:20 +01:00
Richard Davey
8a73523d6c Create GenerateVerts.js 2020-10-08 13:23:17 +01:00
Richard Davey
b3f1a7986e Create GenerateGridConfig.js 2020-10-08 13:23:13 +01:00
Richard Davey
d09764518d Create GenerateGridVertsResult.js 2020-10-08 13:23:09 +01:00
Richard Davey
20f4e8a66b Create GenerateVertsResult.js 2020-10-08 13:23:05 +01:00
Richard Davey
82c87ee814 Create materials container 2020-10-08 10:44:32 +01:00
Richard Davey
f191283928 Moved ParseObjMaterial to Geom namespace 2020-10-08 10:44:23 +01:00
Richard Davey
dda4431366 Merged the Layer3D Game Object and pipeline back in for now 2020-10-07 17:44:36 +01:00
Richard Davey
2137e3413d Added cameraZ parameter 2020-10-07 13:15:53 +01:00