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
df58eb6df6
physics2d supports joint2d apply ( #16299 )
...
* support joint2d apply
* tweak
2023-09-21 14:01: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
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
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
Ling Zhan
12e064c5e2
[fix] physics-2d redundant type declare ( #14372 )
2023-03-01 16:52:29 +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
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
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
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
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
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
ab82e1b42d
remove hidden ( #10414 )
...
* remove hidden
* fix typo
* fix unit-test
* turn on auto fix
2022-03-22 15:11:16 +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
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
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
mmyduckx
ec7a87afa3
add spine&db system && optimize system priority ( #8866 )
...
* add spine&db system && optimize system priority
* refine spine/db system
* fix misspelling
* refine
* remove errorID
* remove errorID
2021-06-29 16:59:52 +08:00
ChiaNing
90d94fead6
api module change ( #8272 )
...
(cherry picked from commit 314ede133cd6b1873b6f71876f16947733de2c46)
2021-02-25 17:31:08 +08:00
Leslie Leigh (李的序)
9bd9baac12
Eslint autofix all ( #8108 )
...
* Eslint autofix all
* Manual fix
2021-01-09 11:41:10 +08:00
yinkaile
3df1490359
refine physics 2d api docs ( #7908 )
...
* refine physics 2d api docs
* refine code
* refine docs
* refine docs
* refine docs
2020-12-07 11:34:21 +08:00
yinkaile
b5384bdc5d
fixed rigidbody error in builtin 2d physics module ( #7855 ) ( #7868 )
2020-11-25 20:01:43 +08:00
PP
9edf1ab691
fix physics step interator ( #7841 )
2020-11-20 17:53:32 +08:00
pandamicro
b162e21a93
Update license and API language declaration ( #7750 )
...
* Update licenses
* Update license for audio
* Update license for core/3d
* Update license for animation, assets, asset-manager, components, data
* update license for event, geometry, gfx
* update license for core modules
math, memop, pipeline, platform, primitive, renderer, scene-graph, utils, value-types
* Update license for core
* Update license for particle and particle-2d
* Update license for particle part2
* Update license for physics and physics-2d
* Update license for all modules in cocos
* Update license for exports
* Fix API doc language declaration
2020-11-10 17:36:31 +08:00
jiaxin.lai
3c17cb9e1e
refactor collision matrix ( #7538 )
...
* refactor collision matrix
* add deprecated
* tweaks
2020-10-28 14:15:20 +08:00
Jare Guo
0319477911
fix decorator warning of ValueTypes ( #7553 )
...
* fix decorator warning of ValueTypes (sync #6285 )
* refresh copyright
2020-10-21 16:31:41 +08:00
zheng han
c8a4884d1a
3d physics 2d gizmo ( #7493 )
...
* add mask param to raycast
* refine code
* 1. add some decorator
2. export earcut
* add dashed line
* revert mainLoop modify
Co-authored-by: 2youyou2 <501251991@qq.com >
2020-10-12 15:50:07 +08:00
yinkaile
96a735b2ff
3d v1.2 physics 2d ( #7357 )
...
* Squashed commit of the following:
add physics 2d
* @@ -205,9 +205,6 @@ export class b2PhysicsWorld implements IPhysicsWorld {
revert box2d version
* add mask param to raycast
* refine code
2020-10-12 11:49:49 +08:00