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
Ling Zhan
e5488b7d32
V3.8.1 box2d wasm experimental ( #15979 )
...
* init
* tsconfig.json
* add box2d-wasm backend to cocos engine. not crash now in 3.8.0.
* rigid-body, collider, and joint works now.
* back
* Joint: SetLinearFrequencyAndDampingRatio
* PhysicsRayCastCallback, PhysicsAABBQueryCallback
* box2d wasm debugDraw
* asm.js
* B2PolygonShape uses B2.ConvexPartition
* box2d wasm contact disabled works now.
* add unit test for physics2d.
* b2ContactListenerWrapper::registerContactFixture
* tweak
* drawPolygon transfer array data from wasm to ts
* tweak
* contact event performance opt
* revert to polygon collider 2d to original implementation. no need for libtess any more.
* PostSolve ContactImpulse use raw pointer.
* TransformVector2; debugDraw supports transform
* enable rtti
* WASM_OBJECT_PTR_2_TS_OBJECT, WASM_OBJECT_PTR_2_WASM_OBJECT
* fix PreSolve parameter oldManifold error
* B2.TransformVector2 --> b2Mul(in ts)
* tweaks: code format.
* eslint
* eslint
* remove physics-2d-box2d-wasm from render-config.json
* comment tweaks
* [opt] debug draw performance opt
* tweaks
2023-08-18 19:30:14 +08:00
ChiaNing
f4a7b95767
fix sprite world matrix update bug ( #15978 )
...
* fix sprite world matrix update bug
* fix by flag Changed Version
* add test
* CI & more test
2023-08-18 14:32:30 +08:00
Leslie Leigh (李的序)
d988b2373a
Fix: Inactivated skeletal animation components shall not affect skinned mesh renderers ( #13779 )
2023-08-17 16:16:15 +08:00
Leslie Leigh (李的序)
331fab3c6b
SkeletalAnimation: disable animation baking in pure editor mode ( #15977 )
2023-08-17 10:21:44 +08:00
Leslie Leigh (李的序)
6d04a1477a
Re-support non-transform animation in animation graph ( #15842 )
2023-08-14 11:38:52 +08:00
Leslie Leigh (李的序)
8403962f94
AnimationGraph: fix clip overriding in nested structure ( #15932 )
...
* Bug introduce
FF
* Fix clip overriding in animation graph
* Fix lint
* Fix lint
2023-08-14 10:29:38 +08:00
Leslie Leigh (李的序)
5eddce91f1
PoseGraph: support editor decorators on node inputs ( #15819 )
...
* PoseGraph: support editor decorators on node inputs
* Fix lint error
2023-08-01 14:50:45 +08:00
Leslie Leigh (李的序)
f87d196f8d
Add Vec3.generateOrthogonal ( #15705 )
2023-07-14 10:33:16 +08:00
minggo
802a1f0959
Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
...
Conflicts:
cocos/core/utils/x-deprecated.ts
cocos/physics/bullet/instantiated.ts
cocos/physics/framework/components/character-controllers/character-controller.ts
cocos/render-scene/scene/shadows.ts
cocos/rendering/render-shadow-map-batched-queue.ts
cocos/spine/lib/instantiated.ts
cocos/spine/lib/spine-define.ts
cocos/spine/skeleton.ts
native/cocos/editor-support/spine-wasm/AtlasAttachmentLoaderExtension.cpp
native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp
native/cocos/editor-support/spine-wasm/spine-skeleton-instance.h
native/cocos/editor-support/spine-wasm/spine-type-export.cpp
native/cocos/editor-support/spine-wasm/spine-wasm.cpp
native/external-config.json
2023-07-12 16:02:10 +08:00
troublemaker52025
50d9179bbe
Optimize effect dependency and package size ( #15650 )
2023-07-12 11:42:17 +08:00
Leslie Leigh (李的序)
43b9fd4485
PoseGraph: fix apply transform node ( #15632 )
...
* Fix apply transform
Tweak
* Optimize
2023-07-12 11:20:25 +08:00
Leslie Leigh (李的序)
a3ee06e374
Optimize unit test; support overriding constants in per-test-suite ( #15628 )
...
* Optimize unit test; support overriding constants in per-test-suite
2023-07-06 18:00:03 +08:00
Ling Zhan
08d9a34457
character controller api tweaks ( #15621 )
...
* character controller api tweaks
* tweak
2023-07-05 15:28:18 +08:00
minggo
7ef995b655
Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
...
Conflicts:
cocos/3d/lights/spot-light-component.ts
cocos/animation/event/event-emitter.ts
cocos/physics-2d/box2d/physics-contact.ts
cocos/physics-2d/box2d/physics-world.ts
cocos/physics-2d/box2d/platform/physics-contact-listener.ts
cocos/physics-2d/builtin/builtin-world.ts
cocos/physics/framework/components/constraints/configurable-constraint.ts
cocos/spine/assembler/simple.ts
cocos/spine/skeleton.ts
native/cocos/editor-support/spine-wasm/spine-model.cpp
native/cocos/editor-support/spine-wasm/spine-model.h
native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp
native/cocos/editor-support/spine-wasm/spine-skeleton-instance.h
native/cocos/editor-support/spine-wasm/spine-type-export.cpp
native/external-config.json
2023-07-03 15:25:13 +08:00