Commit Graph

433 Commits

Author SHA1 Message Date
James Chen b029f9a99a fixed #17207: Add Tween.updateUntil low-level tween API (#17254) 2024-07-02 10:23:47 +08:00
minggo e7f8a9c4ac return correct angle (#17219)
* return correct angle

* fix native implementation

* add test case
2024-06-25 16:22:58 +08:00
James Chen d9bd3c3dc0 [tween] Add bezier / catmullrom support (#17216) 2024-06-25 15:41:15 +08:00
minggo 211337a30c fix logic error when removing an array element in loop (#17215)
* fix logic error when removing an array element in loop
2024-06-25 09:31:38 +08:00
James Chen 61837784c1 Some type renaming in Tween module: TTweenCustomProperty to ITweenCustomProperty since it's an interface, remove T prefix. (#17198) 2024-06-24 11:18:58 +08:00
James Chen d21946f763 [tween] on/off node events in action-manager.ts only when target node is valid. (#17190) 2024-06-20 10:30:30 +08:00
James Chen e9d3e8dd08 Add tween.running getter and use it in the new added unit tests for tween.stopAll (#17193)
* Add tween.running getter and use it in the new added unit tests for tween.stopAll

* Add comment for running getter

* Add Tween.getRunningCount static method
2024-06-20 09:55:03 +08:00
James Chen 0115af0866 fixed #17186: [bug] Tween property type was changed to plain object (#17188) 2024-06-19 17:50:05 +08:00
James Chen 58ceb5ffe0 fixed #17110: [tween] Support to tween string and customize 'progress' for object. (#17154) 2024-06-17 11:34:42 +08:00
James Chen 35877f4765 [tween] Add missing types for custom progress or easing in props. (#17140) 2024-06-14 14:55:56 +08:00
James Chen e2a6d51fd3 [tween] fixed #3d-tasks/issues/9430: Automatic pause and resume Node tweens when Node active changes (#17141)
* fixed #3d-tasks/issues/9430: Automatic pause and resume Node tweens when Node active changes

* Fix Tween.clone()

* More unittest for tween.

* Fix comment in action-manager.ts

* Remove unused ActionManager.purgeSharedManager.

* Add more unit test for tween.

* Fix error TS2322: Type 'Tween<T | NonNullable<U>>' is not assignable to type 'Tween<T | U>'. Types of property 'to' are incompatible.

* Add Tween.getTarget()
2024-06-14 13:44:33 +08:00
James Chen 8e7aa0fdb1 [v3.8.5] Fix timeScale could not work for repeatForever. (#17118)
* Don't step if speed is 0.

* Fix timeScale could not work for repeatForever.

* RepeatForever's duration is Infinity.

* Add unit test.

* Add timeScale(0) test
2024-06-07 17:47:31 +08:00
James Chen fd47685c86 Merge Tween.startAt(time) and Tween.start() to Tween.start(time) , and don't export the internal option ITweenOption.relative. (#17115) 2024-06-07 10:31:00 +08:00
James Chen 06a6ae65b7 Add Tween.startAt(time) API and add more unit test. (#17105) 2024-06-05 14:25:28 +08:00
James Chen 99183fd2e4 Add Tween.update API. (#17099)
* And make ActionInterval.reverse  abstract.
2024-06-04 16:07:12 +08:00
James Chen d0fc74f113 [feature] Add Tween.pause/resume/pauseAllByTarget/resumeAllByTarget method. (#17094)
* Make Action.step/update abstract.

* Add Tween.pause/resume method.

* Add more unit tests for pause/resume/pauseAllByTarget/resumeAllByTarget.

* Add API comments for Tween.pause/resume/pauseAllByTarget/resumeAllByTarget.

* More unit tests for tween.pause/resume.
2024-06-04 14:23:31 +08:00
James Chen 1114b1bd77 Add Tween.timeScale(scale) method and Tween.duration getter (#17088)
* And Fix a repeatForever issue and add more unit test for repeatForever.
2024-06-03 21:14:46 +08:00
James Chen 5a08884c5b Add Tween.reverse and some features for Tween (#17071)
* Add action.setId/getId, Sequence.findAction, Spawn.findAction.

* tween clone needs to consider id

* Add Tween.id() method

* Tween.union  supports to union from a specific action id.

* Add Tween.reverse

* Tween.clone() doesn't have to pass in a target parameter, make it optional.

* Add more unit test
2024-06-03 13:49:49 +08:00
minggo 7b2ffc9eda fix logic error of set world rotation/position/scale (#17079)
* fix logic error of set world rotation/position/scale
2024-06-03 09:51:35 +08:00
minggo 4009668e5d fix color multiply error (#17069)
* fix color multiply error
2024-05-31 10:05:58 +08:00
minggo f993d5e763 use Uint8ClampedArray to save memory (#17047)
* use Uint8ClampedArray to save memory
2024-05-28 14:46:22 +08:00
minggo bc6c2d4d6a Color val delete (#17021)
* remove Color._val, use r, g, b, a instead
2024-05-24 10:18:11 +08:00
James Chen bfeedd3a0d The public method Tween.union() should not update workerTarget. (#17020)
* The public method `Tween.union()` should not update workerTarget.
Add more unit test for tween.

* Revert
2024-05-23 14:29:01 +08:00
James Chen 0a7b11708c [v3.8.5] Support difference targets in sequence and parallel chain (#16979) 2024-05-21 13:54:42 +08:00
minggo e7620a32e4 use array pool instead of shared array (#16988)
* use array pool instead of shared array
shared array will have problem if dispatching and event in a event call back function and the event type is propagationStopped
2024-05-21 13:36:19 +08:00
minggo 6a04c0cea0 Some setter improve (#16959)
* only update position when the value is changed
* update rotation as needed
2024-05-10 10:19:32 +08:00
minggo 28784be4b3 only update scale when the value is changed (#16956) 2024-05-08 18:53:03 +08:00
minggo 80294f7f78 Fix pool shrink (#16941)
* update engine version

* fix shrink logic error
2024-05-06 14:23:45 +08:00
James Chen 4d752400cd Fix divide zero issue in mat4.toSRT which causes node._lrot with NaN values. (#16935) 2024-04-29 11:24:23 +08:00
minggo cde48d1750 add Vec2.toVec3() and Vec3.toVec2() (#16906)
* add Vec2.toVec3() and Vec3.toVec2()
2024-04-17 14:00:59 +08:00
qiuguohua 7d08288e6a Fix the problem that atlas will create an extra one (#16861)
* Fix the problem that atlas will create an extra one

---------

Co-authored-by: qgh <>
2024-04-10 09:28:46 +08:00
minggo bb74373708 Merge pull request #16843 from cocos/v3.8.3
merge v3.8.3 to v3.8.4
2024-03-29 11:40:18 +08:00
minggo 6fb129f562 add shrink threshold (#16840)
* add shrink threshold
2024-03-29 10:54:55 +08:00
qiuguohua 559bfc9467 Added unit tests (#16802)
* Added unit tests

* Modify the name

* Adding new test cases

* Remove redundant test cases

---------

Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-03-19 16:49:43 +08:00
qiuguohua afa8e1313c support char mode emoji and multibyte emoji like 👨‍👩‍👧‍👦 (#16738)
* support char mode emoji and multibyte emoji like 👨‍👩‍👧‍👦
https://github.com/cocos/cocos-engine/issues/15192

* 1. Optimize character expression processing
2. Add unit test

---------

Co-authored-by: ankye <shengxiehua@gmail.com>
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-03-04 09:48:42 +08:00
James Chen 75c6f6d16d fixed #16248: .wasm / .asm.js files are both downloaded on web platform (#16679) 2024-01-11 15:30:05 +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 cc3a3d005a update engine version (#16590) 2023-12-12 10:19:06 +08:00
qiuguohua 043c4dcc3c Fix tween.sequence not supporting single parameter (#16443)
* fix tween.sequence

* add sequence unit test

* Fix tween.sequence not supporting single parameter

* semicolon added

---------

Co-authored-by: zxx43 <zxx43@hotmail.com>
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2023-11-01 11:03:18 +08:00
Ling Zhan 38bcd20e9f V3.8.2 bullet embind (#16350)
* bullet wasm embind

# Conflicts:
#	tests/init.ts

* replace imports with abstract methods of class

* embind performance opt

* wasm split loading

* tweak

* update native/external-config.json 3.8.2-14
2023-10-13 16:16:23 +08:00
Leslie Leigh (李的序) 767f44a313 Bug: deserialized scene should have node transforms invalidated at initial (#16353)
* Bug: deserialized scene should have node transforms invalidated

* Remove transformFlags modification in _onBatchCreated
2023-10-09 16:50:25 +08:00
ChiaNing d2d7623e9d Integration of outline and shadow to label (#16106)
* Integration of outline and shadow to label

* add test

* change getter/setter

* name change & use assert

* test name change

* name change

* fix

* remove old attribute & add visible

* remove assert

* fix: gulp-build-h5-source

* Revert "fix: gulp-build-h5-source"

---------

Co-authored-by: PP_Pro <chinese1236@qq.com>
2023-09-20 11:14:42 +08:00
Leslie Leigh (李的序) 5682bbf996 Use WebAssembly version libraries for unit testing (#16264)
* Use WebAssembly version libs in unit test
2023-09-19 10:52:16 +08:00
Leslie Leigh (李的序) 59c6afd7e5 Optimize physics unit test (#16262) 2023-09-15 14:07:07 +08:00
minggo 554598643a Merge branch 'v3.8.1' into v3.8.2-merge-v3.8.1 2023-09-08 14:34:24 +08:00
Ling Zhan d198a19d07 [fix] box2d wasm rigid-body destroy() should destroy related shapes and joints #17226 (#16154)
* [fix] box2d wasm rigid-body destroy() should destroy related shapes and joints #17226

* update external-config.json
2023-09-06 14:29:45 +08:00
Leslie Leigh (李的序) 42ff683602 Optimize and add test to Vec2.signedAngle (#16183) 2023-09-05 15:24:38 +08:00
PP 9daf2c663c upgrade nodejs to 18.17.0 (#15899)
* upgrade nodejs to 18.17.0

fix compile-native-ts

fix type

fix eslint

fix node version on native-binding

test native ci

fix eslint

fix jest version

upgrade ts-jest

fix

reduce EXPECTED_CAPACITY

update ccbuidl

Revert "test native ci"

This reverts commit 795c8c68cf7ff7f2561db4414689ad3f6aa5c1f7.

# Conflicts:
#	scripts/native-pack-tool/package-lock.json

* detect node version

# Conflicts:
#	package.json

* use engine-strict option

* Update .nvmrc

* Update pal/input/web/accelerometer-input.ts

* fix conflict

* fix compile native ts

* download external in compile native ts

* fix
2023-08-28 15:52:24 +08:00
Yiwen a4990ce4e6 Fix meshopt wechat (#16069)
* fix wechat wasm problem, sync external tag

* fix formatting

* fix tidy, unit test
2023-08-23 11:59:56 +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