Commit Graph

2763 Commits

Author SHA1 Message Date
Yiwen b6abb65171 Math tune cpp (#14526)
* fix problem, add missing functions for vec4

* add unit test for math lib, review geom lib, fix comment, clean code

* revert changes on native math lib

* fix typo, cancel deprecates

* fix csm layer frustum usage

* tune document

* restore native changes

* stage math

* correct frustum

* add more unit test

* fix mistakes introduced in the last commit

* add missing changes

* update

* update deprecated information, rename interfaces

* fix operator priority issue

* fix math library related issues
2023-03-12 15:58:07 +08:00
PP 386ec2895a [cherry-pick] AOT-3: optimize uinstrict code (#14315) (#14523)
* AOT: optimize uinstrict code

- mark some unstrict code as TODO
- remove some unstrict code

* update comment

* remove ts-check
# Conflicts:
#	cocos/2d/framework/deprecated.ts
#	cocos/asset/assets/image-asset.jsb.ts
#	cocos/asset/assets/texture-base.ts
#	cocos/core/assets/image-asset.ts
#	cocos/core/math/rect.ts
#	cocos/core/scene-graph/scene-globals.jsb.ts
#	cocos/native-binding/impl.ts
#	cocos/scene-graph/node-dev.ts
#	cocos/scene-graph/scene-globals.ts
#	exports/sorting.ts
2023-03-10 13:36:45 +08:00
李吉林 e5fe41fbdd remove abs from rhw in transformMat4 (#14483) 2023-03-06 11:03:27 +08:00
李吉林 f4e8b1e03a fix cpp math library (#14458)
* fix cpp math library
2023-03-03 17:33:33 +08:00
Leslie Leigh (李的序) 646b88b509 Add internal utility function createInstanceofProxy() (#14352)
* Add internal utility function createInstanceofProxy()
2023-03-02 16:26:07 +08:00
Yiwen 633f738b07 Math tune (#14419)
* fix math lib & add unit test
2023-03-02 14:34:53 +08:00
李吉林 04e9f5e593 fix ts math library (#14385)
* fix ts math library
2023-02-27 16:59:08 +08:00
pandamicro 89a7f644cf Merge branch 'v3.7.2' into develop
# Conflicts:
#	cocos/core/global-exports.ts
#	cocos/core/math/quat.ts
#	native/cocos/cocos-version.h
#	package.json
2023-02-13 18:00:41 +08:00
Leslie Leigh (李的序) c89d79b4ba Fix type error of renameObjectProperty() (#14188) 2023-02-09 16:47:32 +08:00
Leslie Leigh (李的序) 9ca6ff4915 Add internal utility function renameObjectProperty() (#14142)
* Add internal utility function renameObjectProperty()
2023-02-09 15:15:29 +08:00
李吉林 bdffc36ed7 fix mat4 getRotation (#14183) 2023-02-09 14:24:20 +08:00
江战 43dcb77052 core/data Fix spelling with Grammarly (#14103) 2023-02-09 09:32:13 +08:00
李吉林 30b01bea3f fix math normalize & angle (#14174) 2023-02-08 15:11:16 +08:00
minggo 05dd06d337 update engine version (#14127) 2023-02-02 14:17:12 +08:00
minggo 1fc74be6e2 improve bitmask api (#14116) 2023-02-02 14:09:32 +08:00
minggo 32c08e73f9 merge container-manager.ts and scalable-container.ts (#14107)
* merge `container-manager.ts` and `scalable-container.ts`
* rename `ContainerManager` to `ScalableContainerManager`
* rename `containerManager` to `scalableContainerManager`
2023-02-01 14:12:46 +08:00
Leslie Leigh (李的序) 3f0d20f9da Add lint rule @typescript-eslint/consistent-type-assertions (#14110) 2023-01-31 15:56:40 +08:00
pandamicro 897e35b3e0 Remove legacy cocos2d changelog and fix ui image in readme (#14090)
* Remove legacy cocos2d changelog and fix ui image in readme

* Bump to 3.8
2023-01-18 16:46:03 +08:00
Ling Zhan ce7e0d05e6 [fix] physics-2d box2d syncRotationToPhysics not calculate Euler angle right #15398 (#14048) (#14053)
* [fix] physics-2d box2d syncRotationToPhysics not calculate Euler angle right #15398

* tweaks

* tweak

* add HALF_PI, TWO_PI

* toEulerAngle-->toEulerInYXZOrder
2023-01-12 13:59:09 +08:00
pandamicro 0a8dc371b2 Merge branch 'v3.7.0' into v3.7.1 2023-01-10 14:58:57 +08:00
PP 3a9d9a547f fix: decorated property without default value (#14016)
* fix: decorated property without default value

* update

* update

* update  test

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* close warning

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>
2023-01-06 18:47:53 +08:00
ChiaNing 168421df9f Remove forEach from batcher-2d.ts (#13983)
* Remove forEach from batcher-2d.ts

* version update
2023-01-03 11:04:40 +08:00
pandamicro 8eb177b53d Merge remote-tracking branch 'cocos-for-editor/v3.7.0' into develop
# Conflicts:
#	README.md
#	pal/audio/minigame/player-minigame.ts
2022-12-30 19:30:21 +08:00
James Chen 72780beadb Improve doc for the classes in core/geometry directory. (#13976)
* Improve doc for the classes in core/geometry directory.

* Update doc for capsule.ts and line.ts
2022-12-30 18:15:46 +08:00
James Chen 356bb1da36 Improve doc for obb.ts and intersect.ts (#13928)
* Update doc for obb.ts

* Update doc for intersect.ts
2022-12-30 10:49:54 +08:00
江战 47fe57e382 3.7 fix node polyfill (#13953) 2022-12-29 17:53:51 +08:00
李吉林 19a79d6588 improve math api documents (#13940) 2022-12-29 11:19:13 +08:00
minggo 313c58fe33 Improve utils api doc (#13922) 2022-12-28 15:04:56 +08:00
bofeng-song e6277b9911 fix name can not be reset after node is destroyed (#13908)
* fix property can not be reset normally
2022-12-28 13:56:25 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
James Chen 5e8780f119 Improve API doc for geometry/distance.ts (#13924)
* Improve API doc for geometry/distance.ts
2022-12-28 09:49:38 +08:00
minggo 0af8b0677b fix wrong logic of murmurhash2_32_gc (#13926) 2022-12-27 18:25:47 +08:00
James Chen 23010fca4d Improve AABB API documentation. (#13907)
* Improve AABB api documentation.
2022-12-27 16:41:41 +08:00
mmyduckx 9e05082dca refine api doc (#13914)
* refine api doc
2022-12-27 16:38:29 +08:00
qiuguohua f1e82d94c8 Improve api doc (#13882) 2022-12-26 09:54:33 +08:00
minggo dfd6fa8d31 Improve api doc (#13883) 2022-12-23 11:02:26 +08:00
江战 5c4f901d14 add ccwindow to jsb.d.ts (#13880) 2022-12-22 13:44:40 +08:00
minggo 5f6a2bff97 improve api doc for core/algorithm (#13868) 2022-12-21 16:41:01 +08:00
hyde zhou 879dd15ade simplify effect settings (#13862) 2022-12-21 16:14:41 +08:00
PP e9b958a125 feat: support userData attribute (#13857) 2022-12-20 16:15:48 +08:00
minggo 5b10f22382 remove unused codes (#13850) 2022-12-20 10:35:49 +08:00
江战 f6854cd16e native introduce jsb.window (#13816) 2022-12-16 13:50:59 +08:00
minggo b81585d53b improve readability (#13818)
* improve readability
2022-12-15 09:42:27 +08:00
mmyduckx 2efe60a576 fix game.init assetDB-warning (#13809)
* fix game.init assetDB-warning
2022-12-14 14:31:14 +08:00
hyde zhou aa7c8940ba [pipeline] refactor program-lib.ts, pass.ts (#13610) 2022-12-08 16:33:57 +08:00
江战 cade7f10d4 JSB: bind some geometry types (#13681) 2022-12-07 14:26:32 +08:00
江战 61554d39e6 fix __cid__ & __classname__ attribute (#13661) 2022-12-06 10:14:46 +08:00
minggo faaed84c92 fix waring message cause by sys.capabilities (#13629) 2022-12-05 11:06:14 +08:00
James Chen eaa9142b72 Fix missing default values for properties of native classes. (#13642)
* Fix missing default values for properties of native classes.

* Revert setDefaultValue in property.ts , should not return when JSB is enabled.

* Use SetAccessorProperty instead of SetAccessor to bind JS getter & setter.

https://stackoverflow.com/questions/57686545/setaccessor-and-setaccessorproperty-any-difference

* [JSB] Add 'name' property for Node prototype.

* Check whether Root is null in Scene's constructor since editor may new a scene object before Root is created.
2022-12-05 10:08:55 +08:00
minggo 8d8c283b59 Merge branch 'v3.6.3' into merge-v3.6.3 2022-11-28 13:37:25 +08:00