James Chen
4ce3e6e64e
fixed #16562 : Wasm support for ByteDance minigame platform ( #16628 )
2023-12-20 09:54:54 +08:00
minggo
75d86a916b
do not have to convert to radian ( #16611 )
2023-12-15 15:56:20 +08:00
minggo
8bfa2e11fd
remove unneeded codes ( #16585 )
2023-12-11 15:10:48 +08:00
minggo
4908fe42fb
return radians for angular velocity ( #16580 )
2023-12-11 10:04:33 +08:00
minggo
f29e8d59ca
return corect inertia ( #16566 )
2023-12-07 15:45:03 +08:00
Ling Zhan
590ef3385a
[fix] box2d-wasm supports split loading ( #16412 )
2023-10-13 16:16:54 +08:00
Ling Zhan
db5779c77c
V3.8.2 box2d wasm node scale performance opt ( #16386 )
...
* node scale cause box2d shape recreate, low perf
* box2d and polygon2d shape
* WASM_OBJECT_PTR_2_TS_OBJECT WASM_OBJECT_PTR_2_WASM_OBJECT
* tweak
* update external-config.json to v3.8.2-12
2023-10-10 16:57:01 +08:00
Ling Zhan
d437903c86
[fix] box2d-wasm joint2d null check ( #16337 )
2023-09-26 17:32:54 +08:00
Ling Zhan
d8f1be6f05
[fix] box2d wasm joint stiffness and damping ratio now behaves the same as box2d.ts; fix rigidbody set type; fix box2d-wasm reallocate mem ( #16278 )
...
* [fix] box2d wasm joint stiffness and damping ratio now behaviors the same as box2d.ts;
fix rigidbody set type;
fix box2d-wasm reallocate mem
[fix] [physics2d] 1. debugdraw circle shape not consider rotation transform; 2. box2dwasm circle shape offset error
update native/external-config.json --> v3.8.2-9
2023-09-26 16:29:57 +08:00
Ling Zhan
df58eb6df6
physics2d supports joint2d apply ( #16299 )
...
* support joint2d apply
* tweak
2023-09-21 14:01:45 +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
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
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
Ling Zhan
7be278d464
Revert "[fix] refactor physics2d contact listener ( #14026 )" ( #15564 )
...
* Revert "[fix] refactor physics2d contact listener (#14026 )"
* tweaks
2023-06-30 11:33:56 +08:00
Ling Zhan
051368ec3a
[fix] box2d shape aabb calculating bug ( #15565 )
2023-06-30 11:27:47 +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
17ee0b76ee
[fix][physics2d] increase builtin debug line width from 1 to 3 ( #15500 )
2023-06-21 10:03:10 +08:00
Ling Zhan
82fc27b309
[fix] increase box2d debug line width from 2 to 3 ( #15484 )
2023-06-20 19:13:27 +08:00
minggo
06f136f5c4
Merge branch 'v3.8.0' into merge-3.8.0
2023-06-19 15:26:26 +08:00
PP
b8a96f0080
fix type in debug.ts ( #15426 )
...
* fix type in debug.ts
2023-06-14 11:33:00 +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
Leslie Leigh (李的序)
de60531d1b
Clear unused logs ( #15419 )
2023-06-13 15:04:50 +08:00
dogeFu
09e000266d
feature : add EDITOR_NOT_IN_PREVIEW marco ( #15354 )
...
* feature : add marco for editor preview and refactor code with new marco
* refactor: replace GAME_VIEW with EDITOR_PREVIEW
* Revert "refactor: replace GAME_VIEW with EDITOR_PREVIEW"
This reverts commit e28953e9e7acbb49dc5bdc650b2ff65510d4b084.
* update cc config json
* refactor code
* remove uselese parentheses
* set ccglobal to be false
* skip global variable test case
2023-06-07 17:52:51 +08:00
Ling Zhan
32d1f300a7
[fix] physics-2d contact disable not working #15149 ( #15158 )
...
* [fix] physics-2d contact disable not working #15149
* tweaks and add docs
2023-05-24 15:58:36 +08:00
May2nd
eda23bcba3
- fix memory leak in builtin-physics ( #14774 )
...
* - fix memory leak in builtin-physics
* - update eslint
---------
Co-authored-by: Viet <>
2023-04-20 18:54:32 +08:00
Ling Zhan
12e064c5e2
[fix] physics-2d redundant type declare ( #14372 )
2023-03-01 16:52:29 +08:00
Ling Zhan
1a121bbe65
[feat] collider2d component works without rigidbody2d component ( #15479 ) ( #14102 )
...
if rigid body is not attached to the same node of collider, this b2.shape is attached to the groundRigidBody(pos zero, rot zero)
2023-02-07 10:47:26 +08:00
Ling Zhan
f8f121c732
[fix] refactor physics2d contact listener ( #14026 )
...
* [opt] physics2d box2d contactListner optimization
* back. todo: pre,post,_begin,_end, physicsContact class
* new contact listener works now.
* code refactor
* tweaks
* tweaks
* rename finalizeCollision to finalizeContactEvent
* align physics 2d events with physics 3d.
* tweaks
* fix builtin2d
* tweaks box2d
* Revert "tweaks box2d"
This reverts commit d5d0cbd36e6669844e363513c5861904e37153a5.
Revert "fix builtin2d"
This reverts commit 143b4b2abcc90f585f019a6b027c9053acb1fc73.
Revert "tweaks"
This reverts commit b9c449ec85d2ed408ebeceebb6efd10ec1f117a5.
Revert "align physics 2d events with physics 3d."
This reverts commit c12f102c6f7777266e3986bdf72a90656fa2b453.
* tweaks
* compatibility
* tweaks
2023-01-12 22:01:01 +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
Ling Zhan
5f7285815c
[fix] physics2d doc hint changes decorator @property to @serializable and @type ( #13939 )
...
* [fix] physics2d doc hit change decorator @property to @serializable and @type
* tweaks
* tweak
2022-12-30 13:28:19 +08:00
Ling Zhan
884dbad0d7
[opt] improve api doc for Physics2D ( #13894 )
...
* [opt] improve api doc for Physics2D
* tweaks
2022-12-28 15:07:26 +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
Ling Zhan
688f4db260
[feat] physics2d add doc hint ( #13897 )
2022-12-28 10:36:08 +08:00
Ling Zhan
50008d5c9b
[fix] physics2d box2d rigidbody2d should be in-active by default #11344 ( #13872 )
2022-12-22 10:01:50 +08:00
Ling Zhan
278e559066
[fix] physics2d box2d shape-2d apply() should consider node/collider status #15110 ( #13859 )
2022-12-20 15:56:29 +08:00
Ling Zhan
2b272e2e65
[fix] physics2d box2d syncRotationToPhysics should use rotation from scene node's world quat #15105 ( #13839 )
...
* [fix] physics2d box2d syncRotationToPhysics should use rotation from scene node's world quat #15105
* tweaks
2022-12-20 10:19:46 +08:00
Ling Zhan
a93437fa78
[fix] physics2d box2d shape aabb not accurate #12631 ( #13819 )
2022-12-14 18:30:38 +08:00
Ling Zhan
8ab2b4826c
[fix] physics2d box2d jointlimit forgets to convert degree to radian #9957 ( #13810 )
2022-12-14 13:34:38 +08:00
Ling Zhan
a2b2d83015
[fix] when physics2d-builtin shape sets group should check collider then addShape ( #13790 )
...
* [fix] when physics2d-builtin shape sets group should check collider then addShape #13361
* tweaks
2022-12-13 11:12:39 +08:00
Ling Zhan
355a0fac28
[fix] [physics2d][box2d] new Physics2d Box2d :: syncSceneToPhysics() #12381 ( #13747 )
...
* [fix] [physics2d][box2d] not sync the children scene nodes' pos of a modified scene node #12381
* tweak
* tweak
2022-12-08 18:47:14 +08:00
minggo
03b5d4c3fd
Merge branch 'v3.6.3' into merge-v3.6.3
2022-12-08 15:46:09 +08:00
Ling Zhan
4cdda1e2cf
[fix] builtin-2d-physics removeShape() slow #12843 ( #13650 )
...
* [fix] builtin-2d-physics removeShape() slow #12843
# Conflicts:
# cocos/physics-2d/builtin/builtin-world.ts
* [fix] builtin-2d-physics removeShape() slow #12843
* Revert "[fix] builtin-2d-physics removeShape() slow #12843 "
This reverts commit d42ea68d743ad5e343544719426a9e8beffc14e8.
2022-12-05 17:25:44 +08:00
Ling Zhan
650713c0b8
[feat] new polygon partition algorithm: Hertel Mehlhorn #13190 ( #13585 )
...
* [feat] new polygon partition algorithm: Hertel Mehlhorn #13190
* eslint
* remove the option to change algorithm
* tweaks
* add unit tests
* tweaks
* eslint
2022-12-02 16:12:17 +08:00
Ling Zhan
ab8fbbfc07
set world orogin as physics-2d joint's connected body ( #14328 ) ( #13239 )
...
* set world orogin as physics-2d joint's connected body (#14328 )
* remove console.log
2022-11-10 13:59:39 +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
Ling Zhan
6f83d4dbd2
[feat] physics-2d supports switching back-end in EDITOR ( #13177 )
...
* [feat] physics-2d supports switching back-end in EDITOR
* tweak
* tweak
* tweak
* eslint ignore ban-types (object, Function) in 2d physics-system.ts
* tweak
2022-10-28 23:33:16 +08:00
Ling Zhan
712d1f56b6
Merge pull request #13163 from lealzhan/develop
...
[fix] builtin-2d-physics removeShape() slow #12843
2022-10-27 17:55:14 +08:00
lealzhan
4b37b9999c
[fix] builtin-2d-physics removeShape() slow #12843
2022-10-27 17:34:06 +08:00
lealzhan
6e0bd997f8
[fix] builtin-2d-physics removeShape() slow #12843
2022-10-27 16:06:05 +08:00
minggo
a354281d7e
Fix core import issue ( #13148 )
...
* import binarySearchEpsilon from core module
* remove unused files
* import easing from core module
* use array instead
* do not export MutableForwardIterator
* do not export binarySearchBy
* print deprecated information in runtime
2022-10-26 15:19:26 +08:00