Commit Graph

176 Commits

Author SHA1 Message Date
minggo 7759568a07 fix lint (#16623) 2023-12-19 11:54:20 +08:00
Leslie Leigh (李的序) da9c103ad3 Add Vec3.signedAngle (#16013)
* Signed angle

* Update cocos/core/math/vec3.ts

---------

Co-authored-by: Leslie Leigh <leslieleigh@outlook.com>
2023-12-19 11:46:29 +08:00
minggo fad2b8faab fix logic error in Vec3.rotateN() (#16564) 2023-12-06 15:50:57 +08:00
Leslie Leigh (李的序) 42ff683602 Optimize and add test to Vec2.signedAngle (#16183) 2023-09-05 15:24:38 +08:00
Yiwen bde3cd4cc3 Add adv mesh functionalities. (#16009)
* stage

* update

* update

* fix physics & ray cast problem

* fix default value, clean unused code, fix lint errors

* clean code

* update meta file

* update external, license

* fix tidy, circular dep

* fix type cast

* rm unit test

* fix unit test

* update comment
2023-08-21 10:15:24 +08:00
zhifenghu 9f7bf8a8eb Update utils.ts, replace the random function, to make particle scenes… (#15838)
* Update utils.ts, replace the random function, to make particle scenes support automated testing

* core/math/utils.ts  add method: setRandGenerator

* core/math/utils.ts  add method: setRandGenerator

---------

Co-authored-by: 胡志锋 <zhifeng.hu@cocos.com>
2023-08-07 13:41:48 +08:00
李吉林 72db3322bd add light probe group help (#15797) 2023-07-21 15:19:24 +08:00
Leslie Leigh (李的序) f87d196f8d Add Vec3.generateOrthogonal (#15705) 2023-07-14 10:33:16 +08:00
PP 4c0f664960 [AOT] add type for AOT engine (#15527)
* fix object

* fix action

* fix type in instantiate.ts

* fix type for NodeEventProcessor

node_event_processor

* fix type in input.ts

* fix particle system

* fix color type

* fix CI

* add tracking issue
2023-06-28 11:24:40 +08:00
minggo e7c5b34e18 Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/2d/assembler/label/text-processing.ts
	cocos/physics/bullet/instantiated.ts
	cocos/profiler/profiler.ts
	cocos/rendering/custom/executor.ts
	cocos/rendering/custom/index.ts
	cocos/rendering/custom/web-pipeline.ts
	cocos/rendering/pipeline-scene-data.ts
	cocos/root.ts
	cocos/spine/assembler/simple.ts
	cocos/spine/lib/instantiated.ts
	cocos/spine/lib/spine-define.ts
	cocos/spine/skeleton.ts
2023-06-27 13:35:35 +08:00
Ling Zhan b1214a5327 [fix] math Quaternion::fromMat3 (#15491)
* [fix] native math Quaternion::fromMat3 and Mat3::fromViewUp
2023-06-21 09:33:14 +08:00
PP 509d73b27d merge branch v3.8.0-aot (#15421)
* PR1: add explicit function return type (#15311)

* PR4: add explicit function return type (#15314)

* [ci skip][AUTO]: Automated code generating update: 8843bfe54cd3f8e6f84432948716c8d130ecb233  (#15314) (#15357)

Co-authored-by: cocos-robot <cocos-robot@cocos.com>

* add function return type

* fix version checking

* fix return type

---------

Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com>
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-06-13 18:08:45 +08:00
Jiujiang Liu 3898cf3d47 fix getUniform API bug (#15333)
Co-authored-by: James Chen <dumganhar@gmail.com>
2023-06-07 15:24:35 +08:00
pandamicro c8d3be08a3 Fix issues in Node.updateWorldTransform and UITransform.getBoundingBoxTo[World] (#15273)
* Fix transform update issue when only rotation is set to root node

* Fix UITransform.getBoundingBoxTo and UITransform.getBoundingBoxToWorld

* Improve API and test

* Fix native Node::updateWorldTransform

* Fix UITransform.getBoundingBoxTo

* Fix getBoundingBoxTo by ensuring one time rect transform

* Ignore zero sized rect for bounding box calculation

* Improve API doc
2023-06-07 11:10:28 +08:00
Santy-Wang d3a9b5a8b8 gradient misc optimization and add some helpful function (#15032)
* gradient misc optimization and add some helpful function

* keep old version and add new interface

* missing .

* mark as engineInternal
2023-05-24 13:59:29 +08:00
李吉林 582654b9df fix vec2.angle comments (#14960) 2023-05-04 17:25:27 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
李吉林 9538714d1b add moveTowards & rotateTowards (#14543) 2023-03-13 10:00:39 +08:00
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
Yiwen 633f738b07 Math tune (#14419)
* fix math lib & add unit test
2023-03-02 14:34:53 +08:00
jk20012001 28e216f3d1 treat color.ToVec4 FromVec4 as linear color (#14433) 2023-03-02 11:05:13 +08:00
李吉林 04e9f5e593 fix ts math library (#14385)
* fix ts math library
2023-02-27 16:59:08 +08:00
李吉林 bdffc36ed7 fix mat4 getRotation (#14183) 2023-02-09 14:24:20 +08:00
李吉林 30b01bea3f fix math normalize & angle (#14174) 2023-02-08 15:11:16 +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
李吉林 19a79d6588 improve math api documents (#13940) 2022-12-29 11:19:13 +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
江战 61554d39e6 fix __cid__ & __classname__ attribute (#13661) 2022-12-06 10:14:46 +08:00
Leslie Leigh (李的序) 9e396a7182 Optimize mat4 performance in V8 (#13527) 2022-11-24 11:16:51 +08:00
Leslie Leigh (李的序) 6f9b229d6e Implement Vec3.slerp to support spherical interpolation between directional vectors (#12682)
* Implements Vec3.slerp

* Optimize

* Fix
2022-11-23 20:21:28 +08:00
徐兵 0f8d8cd3d9 reflection probe support instancing and moving update (#13426) 2022-11-22 10:16:55 +08:00
江战 db8c0dda7d fix setWorldScale (#12988) 2022-11-08 11:05:26 +08:00
王凯鹏 7f7d85c9d7 Fix native engine bugs in editor (#13242) 2022-11-07 15:04:02 +08:00
minggo 7294de16f6 Adjust core import (#13230)
* fix import style of core module
* fix decorator usage
2022-11-07 15:01:31 +08:00
江战 7ccd14e6e6 JSB export math class : Vec2/Vec3/Vec4/Quat/Mat3/Mat4/Color (#12968) 2022-10-31 17:24:54 +08:00
李吉林 a9d4e13f85 Light probe merge (#13093)
* add light probe
2022-10-19 22:34:21 +08:00
AFeiYA 1c2a1ba38a Add srgb transform. (#12873) 2022-09-28 14:15:22 +08:00
ChiaNing d6e1a27001 remove translate function change warn (#11687)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-06-24 11:16:05 +08:00
PP 1c737b91fd optimize Constants in engine (#11464)
* publish build-engine 4.3.5

* update build-engine deps

* remove default-constants.ts

ds

remove de

* delete consts.d.ts

* support build-const workflow

* remove EXPORT_TO_GLOBAL

* update comment

* fix interface-check

* update comment
2022-06-14 16:14:34 +08:00
minggo 7814949998 Merge branch 'v3.5.1' into v3.6.0_merge_v3.5.1 2022-05-24 11:53:57 +08:00
pandamicro dba83c270d Fix multi blank lines (#11116) 2022-05-17 11:56:06 +08:00
李吉林 cbd547731c fix math comments (#10956)
* fix math comments
2022-05-06 11:57:21 +08:00
Santy-Wang 23de9188ba V3.5 docs (#10898)
* adjust api docs and delete useless annotation

* delete useless annotation
2022-04-27 15:22:22 +08:00
Santy-Wang 8601de5de0 adjust api docs (#10871)
* adjust api docs

* refine

* add english doc
2022-04-26 19:14:47 +08:00
minggo 84c27e7f71 Merge branch 'v3.5.0' into v3.6.0_merge_v3.5 2022-04-24 13:41:27 +08:00
Santy-Wang e82cec17ac update docs (#10796)
* update docs

* update docs more

* refine

* refine
2022-04-20 18:47:53 +08:00
King Wang 287ad8d01f fix Return type of set is any in vec3 and some types (#10722) 2022-04-14 16:37:21 +08:00