Commit Graph

268 Commits

Author SHA1 Message Date
James Chen 75c6f6d16d fixed #16248: .wasm / .asm.js files are both downloaded on web platform (#16679) 2024-01-11 15:30:05 +08:00
James Chen 16382fa9e9 Fix wasm loading and remove unused code (#16676)
* Fix wasm loading and remove unused code

* Update package.json
2024-01-10 10:29:48 +08:00
James Chen 4ce3e6e64e fixed #16562: Wasm support for ByteDance minigame platform (#16628) 2023-12-20 09:54:54 +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 (李的序) d75496e187 Physics material inspector localization (#16409)
* Physics material inspector localization
* Document property ranges.
* Revert
* Update editor/i18n/en/modules/physics.js
2023-10-11 17:37:12 +08:00
Leslie Leigh (李的序) 52726aa1a2 physx disable unused PVD for now (#16383)
* Disable unused PVD for now

* Update physx dep
2023-10-11 13:31:57 +08:00
minggo 36a2933f6c Merge branch 'v3.8.1' into v3.8.2-merge-v3.8.1
Conflicts:
	.github/workflows/native-compile-platforms.yml
	cocos/physics/framework/deprecated.ts
	cocos/rendering/custom/executor.ts
	native/cocos/renderer/pipeline/custom/FrameGraphDispatcher.cpp
2023-10-09 14:15:51 +08:00
Leslie Leigh (李的序) 23ca385cae Autofix physics lint problems (#16323)
* Autofix physics lint problems

* Fix lint

* Opt
2023-10-07 16:13:49 +08:00
Ling Zhan 9a42164966 V3.8.2 physics debug draw (#16325)
* init debug draw

* tweak _debugDrawFlags

* px debug draw performance opt

* tweaks

* add debug draw for physx c++

* debug draw use MainWindow's cameras

* builtin physics draw; WireFrame-->wireframe

* cannon.js supports debug draw

* update engine-native-external --> v3.8.2-5

* tweak

* set engine-native-external --> v3.8.2-5, so that we can pass npm test

* fix: bullet debug draw by default should draw nothing

* comment tweaks

* tweaek

* update native/external-config.json --> 3.8.2-8
2023-09-25 18:05:33 +08:00
Ling Zhan c909152ac8 physx supports wasm-split-loading(eg. wechat minigame) (#16310) 2023-09-25 10:23:02 +08:00
Yiwen 0a5befb6fc physics removes useless cone twist joint (#16285) 2023-09-20 21:31:53 +08:00
Ling Zhan 8366af4d1d [opt] physx mesh collider shrinkPositions() performance x50 (#16283) 2023-09-19 18:05:55 +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
Yiwen ae9b42740b deprecate conetwsit constraint, use configurable constraint instead (#15987) 2023-08-18 18:01:55 +08:00
Ling Zhan cf8ceed661 V3.8.1 cct trigger (#15613)
* physx ts 支持

# Conflicts:
#	cocos/physics/framework/components/character-controllers/character-controller.ts
#	cocos/physics/framework/components/colliders/collider.ts
#	cocos/physics/physx/physx-world.ts

* add bullet-character-controller trigger events

* physx c++ add cct trigger

* tweaks

* tweaks

* tweaks

* tweak

* tweaks

* physics jsb: emitCCTShapeEvent --> emitCCTCollisionEvent
2023-08-18 10:47:59 +08:00
Ling Zhan 1dc3142fbb [opt] when move() is called, character controller sync physics position to scene; change default stepOffset; set minimum skinWidth (#15966)
* [opt] [character controller] when move() is called, character controller sync physics position to scene immediately; change default stepOffset from 1.0 to 0.5; set minimum skinWidth 0.001

* tweak

* native

* eslint

* eslint

* eslint
2023-08-17 17:34:04 +08:00
Ling Zhan 02f7d6e8bb V3.8.1 mesh collider set mesh (#15520)
* bullet mesh-collider supports changing mesh after initialization #15363

* physx mesh-collider supports changing mesh after initialization #15363

* tweak
2023-08-16 15:05:06 +08:00
PP ebfcbb6228 [AOT] fix ts engine compile (#15745) 2023-07-17 14:24:48 +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
PP 649e81a7b2 optimize: ensure wasm module ready before importing (#15631)
* optimize: ensure wasm module ready before importing

* Update @types/pal/minigame.d.ts

* Update pal/wasm/wasm-minigame.ts

* use reject instead of warnning

* optimize: add promiseToLoadWasmModule

* add shouldUseWasmModule method to simplify code

* fix: subpackage loading on taobao minigame platform

* Update pal/wasm/wasm-minigame.ts
2023-07-06 15:34:31 +08:00
Ling Zhan 083e3b284d [fix] physx rigid body sleep issues (#15625)
* [fix] physx rigid body sleep issues

* tweaks
2023-07-06 12:40:26 +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
黄森斌 6acdd0ae95 inspector interface: reserve tab style of group; support new section style; (#15586)
* reserve tab style of group; support new section style;

* add mesh-renderer section group style
2023-06-30 09:20:00 +08:00
PP 491c0cf688 [AOT] fix type for AOT engine (#15526)
* fix type

* fix readonly

fix readonly

* fix get/set type

* fix switch type

* fix eslint

* update

* optimize type in state-machine-eval
2023-06-27 15:56:32 +08:00
minggo f148e66fab fix compiling error 2023-06-27 14:21:01 +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
Yiwen 68e9918834 [fix] physics hinge transform (#15442)
* [fix] add boundary to avoid physx assert error (#15321)

* fix native physics transform problem
2023-06-20 14:12:41 +08:00
minggo 06f136f5c4 Merge branch 'v3.8.0' into merge-3.8.0 2023-06-19 15:26:26 +08:00
PP c03d4277f2 add CULL_ASM_JS_MODULE constant (#15467)
* add CULL_ASM_JS_MODULE constant
2023-06-19 14:59:54 +08:00
Ling Zhan 85ba2e6c2c [fix] add character controller doc links; replace onGround with isGrounded (#15447) 2023-06-19 10:34:02 +08:00
Yiwen 9f294ddaa3 Update constraint comments (#15422)
* [fix] add boundary to avoid physx assert error (#15321)

* update comments for physics constraint components
2023-06-13 18:35:21 +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
PP 5a2340220c add FORCE_BANNING_BULLET_WASM constant (#15394)
* add FORCE_BANNING_BULLET_WASM constant

* optimize getImportObject
2023-06-09 10:42:02 +08:00
PP db27a21355 fix: bullet crash on Wechat iOS (#15384) 2023-06-08 20:22:53 +08:00
Ling Zhan bd2608bce7 [opt] cct api refactor (#15360)
* [opt] cct api refactor

* tweaks

* tweak
2023-06-08 12:22:27 +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
Yiwen 9b0996a17d [fix] assign physics system to PhysicsSystem._instance, before using it (#15331) 2023-06-06 15:04:07 +08:00
Yiwen 8f21546ec2 [fix] assign physics system to PhysicsSystem._instance, before using it (#15320) 2023-06-06 10:21:31 +08:00
Yiwen d9401b54ac fix code style (#15310)
* fix code style

* rm getter
2023-06-05 18:00:17 +08:00
Ling Zhan f01671f2e0 [fix] physx misuses bullet variable (#15255) 2023-06-02 17:12:07 +08:00
Ling Zhan 0c2d34099d [fix] physx Character Controller filter bug (#15291) 2023-06-02 14:47:00 +08:00
PP 4bdb07b438 fix build error when enable NOT_PACK_PHYSX_LIBS && correct wasm support on Bytedance platform (#15252)
* fix: build crash when enable NOT_PACK_PHYSX_LIBS

* fix: correct wasm support on Bytedance platform
2023-06-01 10:24:24 +08:00
Yiwen 1cf995dd0f fix physics data type decorators (#15152)
* update external config, fix abnormal behavior

* remove help and menu tag for non-component data type
2023-05-23 20:38:31 +08:00
Yiwen 486b36319d [fix] physics constraint abnormal behavior and update external config to develop-22 (#15126) 2023-05-22 10:52:23 +08:00
Yiwen 5330e7ee5a Configurable constraint (#14778)
* add support to configurable constraint

* add missing files

* update packages

* fix PhysX bugs,update error info

* fix exports, deserialization.

* just stage

* Revert "just stage"

This reverts commit 41dc157afec00bfeb077b12e64c45a951ab1f894.

* fix problems

* improve perf

* tweak

* fix merge errors

* update errormap
2023-05-19 11:28:09 +08:00
Yiwen 78c87a09d2 add new features to 3d hinge constraint (#14447)
* add new features to 3d hinge constraint
1. angular limit
2. angular drive

* add missing file

* fix native and bullet parameter error, tune parameters

* clean code

* update package and package lock

* stage

* update

* fix interface

* fix api, improve perf

* fix unit conversion

* fix unit conversion

* sync physx behavior
2023-05-18 16:36:23 +08:00
Ling Zhan ae724da8cf [fix] physics-enum adds doc (#15095)
* [fix] physics-enum adds doc

* tweaks

* tweaks
2023-05-17 18:56:47 +08:00
Ling Zhan 1032bd9508 Sweep Test (#15068)
* init

# Conflicts:
#	cocos/physics/physx/physx-adapter.ts

# Conflicts:
#	cocos/physics/physx/physx-adapter.ts

* init sweepBoxClosest

# Conflicts:
#	cocos/physics/physx/physx-world.ts

* back

* physx boxCastClosest works now.

* add physx sweepAll

* init bullet sweepBoxClosest. not test yet

* add bullet sweepBox

* bullet add internal functions: sweep/sweepClosest

* init physx c++ sweepBox/sweepBoxClosest

* add sweepSphere, sweepCapsule; add unit test.

* add sweep api doc

* revert physx asm/wasm loading func

* tweaks

* add error log for builtin and cannon.js

* builtin and cannon.js use warnid when calling sweep

* tweak api doc
2023-05-17 18:37:03 +08:00
Ling Zhan 8bc85cc577 IPhysicsEngineId replaces ammo.js with bullet (#15070)
* IPhysicsEngineId replaces ammo.js with bullet

* put back "string"
2023-05-17 15:58:18 +08:00