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
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
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
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
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
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
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
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
J.C
51ac077cc8
fix #9890 ( #9891 )
...
added missing parameter
2021-12-30 11:58:06 +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
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
santy-wang
4c92a4ba5e
Merge branch 'v3.1.2' of https://gitlab.cocos.net/publics/engine into v3.3-validate
2021-07-12 17:42:21 +08:00
zxx43
146385bdfb
V3.1.2 physics rotation fix ( #8938 )
...
* modify euler to quat
* rename output vec3
2021-07-12 16:42:53 +08:00
PP
4914116834
optimize SystemEventType and NodeEventType ( #8678 )
...
* remove recomendation for usage of string type of event
* deprecate KEY_DOWN KEY_UP event
* support SystemEventType.KEYBOARD_DOWN && SystemEventType.KEYBOARD_UP
* deprecate some useless properties
* implement keyboard pal
* remove SystemEventType toString()
update
* fix instantiating EventTouch
* optimize deprecated info
* support native keyboard KEYBOARD_DOWN event
* remove usage of event code
* fix deprecating pure value properties
* optimize deprecating Event type
* optimize deprecating getEventCode()
update
* optimize deprecating eventType
* optimize deprecating isPressed
* optimize deprecating keybaord event
* optimize deprecating rawEvent
* Revert "fix deprecating pure value properties"
This reverts commit 60d586532496fa1f422f05c54a922b86d1dc96ee.
* fix deprecate pure value properties
* Revert "fix deprecate pure value properties"
This reverts commit a83f1725fedfbd7af445892912aacab8e8502147.
* fix deprecating pure value property
* update
updaate
* deprecate some EventType enum in SystemEventType and NodeEventType
* optimize
* update
update
* update
* update
* fix CI
* fix CI
* fix Circular dependency
* fix Circular dependency
2021-06-07 19:06:29 +08:00
troublemaker52025
05a72cdee1
Delete private node for v3.1 ( #8382 )
...
* delete private node
# Conflicts:
# cocos/core/scene-graph/private-node.ts
* update
* Alias of Node
* update
* dont use enum ALL
* fix bug for editor
* update
* update
* update
* Retaining deprecated objects
* update
* update
* update
* using warnID and update EngineErrorMap.md
2021-04-08 17:47:05 +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
Santy-Wang
ad4bff3988
Restructure Module ( #7968 )
...
* module restructure
* refine
* restructure module
* merge
* revert
* fix ci
* update import path of unit-test
* split 2d and ui
* add more module
* change audio adapter
* rename primitive
* config wechat plugin
* merge
* add category config
* merge
* merge
2020-12-24 19:07:26 +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
8ae5bf9340
refine 2d physics ( #7821 )
...
* Compatible with builtin module
* return all point test results
2020-11-19 08:14:58 +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
yinkaile
8809e0ba46
3d box2d ( #7711 )
...
* fixed mouse joint
* refine animated type rigid body
2020-11-05 19:40:02 +08:00
yinkaile
992be83895
fixed physics debug draw ( #7704 )
2020-11-05 17:16:40 +08:00
Leslie Leigh (李的序)
f99240f664
@cocos/build-engine: add option to remove deprecated features ( #7603 )
2020-10-27 18:28:58 +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
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