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
minggo
95a76235b6
Adjust some files ( #12910 )
...
`cocos/core` should not depend other modules, so move some files out of `cocos/core`:
- move some files from `cocos/core` to `cocos/game`
- director.ts
- splash-screen.ts
- game.ts
- move `cocos/core/root.ts` to `cocos/root.ts` as there is not better module to contain `root.ts`.
- move `cocos/core/platform/view.ts` to `cocos/ui/view.ts` as screen related logic is moved to `cocos/core/platform/screen.ts`
2022-09-28 09:34:35 +08:00
minggo
0d7c5c8f56
move cocos/core/scene-graph to cocos/scene-graph ( #12868 )
...
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
- component.ts
- component-event-handler.ts
- component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`:
- missing-script.ts
- model-renderer.ts
- renderer.ts
- camera-component.ts
* move `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
Santy-Wang
7bc135e1c7
adjust initialization process ( #11143 )
...
* adjust init process
* fix bugs
* restructure
* tweak
* delete useless code
* fix ci
* support more platform and fix some bugs
* mark internal
* tweak
* add docs
* add docs and little adjustment
* fix bugs
* adjust decorator execute order
fix mesh error
* fix bugs
* revert some change
* revert auto-generated code
* revert auto-generated code
2022-07-03 21:16:09 +08:00
zxx43
7e3efeff86
V3.6.0 fix cutting objects crash ( #10053 )
...
* fix points undefined return 0 area
* ensure points not be undefined
2022-06-20 17:17:37 +08:00
mmyduckx
95ee1f29e1
fix physics EDITOR macro ( #11613 )
2022-06-20 14:35:40 +08:00
mmyduckx
1ae41c496d
fix typo ( #11611 )
2022-06-20 13:33:37 +08:00
mmyduckx
df1594c8d8
Gameview editor macro ( #11568 )
...
* GameView related EDITOR macro modify
* remove debug code
* fix ci
* fix review
* fix review
2022-06-20 10:05:29 +08:00
changhua
bb2b4b3e53
[3.5.1]fix physics collision matrix ( #11181 )
...
* fix physics collision matrix pyhsicsGroup2D
* fix import legacyCC
2022-05-24 10:29:27 +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
e82cec17ac
update docs ( #10796 )
...
* update docs
* update docs more
* refine
* refine
2022-04-20 18:47:53 +08:00
Santy-Wang
ced2114d1d
rename to uppercase ( #10746 )
2022-04-13 13:58:23 +08:00
Santy-Wang
a963881d4e
add category config file for docs ( #10589 )
...
* add category config file for docs
* add input module
* adjust name
2022-03-30 18:32:37 +08:00
Santy-Wang
ab82e1b42d
remove hidden ( #10414 )
...
* remove hidden
* fix typo
* fix unit-test
* turn on auto fix
2022-03-22 15:11:16 +08:00
troublemaker52025
18952aafff
fix 2D-phyisc rotation error for v3.5.0 ( #10373 )
2022-03-17 10:00:51 +08:00
黄森斌
4f05432c23
Displayorder is removed from the edit template and is taken over completely by the decorator ( #10165 )
2022-03-02 21:14:37 +08:00
J.C
51ac077cc8
fix #9890 ( #9891 )
...
added missing parameter
2021-12-30 11:58:06 +08:00
J.C
70c8ec2069
fix #9362 ( #9365 )
...
* fix #9362
* fix eslint error
Co-authored-by: J.C <1571995@qq.com >
Co-authored-by: pandamicro <lphuabin@gmail.com >
2021-09-30 11:39:00 +08:00
zhakesi
202aa713bb
fix rigid-body miss processing sync Position and Rotation ( #9377 )
2021-09-24 13:46:18 +08:00
PP
97b3657549
migrate input module out of platform ( #9296 )
...
* migrate input module out of platform
* revert EventKeyboard.isPressed deprecation
* fix CI
2021-09-07 15:24:43 +08:00
jiaxin.lai
4cda45bfd9
physics unit-test and features base 3.3 ( #9027 )
...
* support ccd
* clearState after change type
* fix Instantiate rigid body with custom group
* add some extra functions
* update physics libs
* tweaks rigid body component
* add EVENT_UPDATE to PhysicsMaterial
* tweaks
* support switch physics backend
* remove redundant constants
* add config & min volume size
* update @cocos/physx to 1.0.4
* fix destroy cannon world
* correct init if manual construct physics system
* disable log info in test
* add some physics unit test
* add physics unit test
* make the config optional
* add runInEditor to selector
* pack physx js libs by default
* fix
* STASH
* stash
* tweaks
* rename
* update test
* support query trigger
* update @cocos/ammo to 1.1.6
* fix raycast with query trigger in physx
* raycast test with query trigger
* rename
* docs
* fix calculate local inertia (#8956 )
* rename
* delete
* allow generate mesh/terrain collider at runtime
* tweaks
* use sap by default
* update @cocos/ammo to 1.1.8
* update @cocos/physx to 1.0.7
* update @cocos/cannon to 1.2.8
* update package-lock
* add ccd test
* remove config
* rename
* fix 2d phy sys typing
* support global allow sleep toggle for bullet
* tweaks
* use naive broadphase by default
* rename
* docs
* tweaks
* add missing jugement
2021-07-22 15:52:18 +08:00
zxx43
c8c8072c87
V3.3 fix physics debug drawing ( #8968 )
...
* modify physics debug to UI_2D
* add import
2021-07-14 00:09:40 +08:00