Commit Graph

159 Commits

Author SHA1 Message Date
Leslie Leigh (李的序) 9e46834765 Category description (#10544)
* Category description

* Update
2022-03-28 17:53:45 +08:00
Leslie Leigh (李的序) 16253687b9 Handle legacyPublic in API doc (#10456)
* Handle legacy public

* Update
2022-03-23 14:26:27 +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
Leslie Leigh (李的序) 466d4cf1f9 API documentation: category (#10435)
* Typdoc: category

* Add categories

* workflow
2022-03-22 13:57:00 +08:00
santy-wang 995f5b2d41 Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5-merge 2022-01-24 15:56:49 +08:00
Santy-Wang e7bc1bf813 adjust PhysX initialization (#9641)
* adjust PhysX initialization

* refine

* refine

* refine comment
2022-01-13 14:07:22 +08:00
PP fbde8d1e90 use lagacyPublic to marked deprecated public interface (#9859)
* use lagacy-public

* publish beta6

* remove jsDoc tag from constructor

* use legacyPublic

* publish beta 7
2021-12-28 11:48:10 +08:00
PP cc01fad918 support internal interface filter (#9797)
* support interface filter

* publish build-engine@4.2.20-beta.1

* update

* fix other type of statement

* publish @cocos/build-engine 4.2.20

* update lock

* remove `@internal` from constructor documentation

* change to internal_cc tag

* support target tag in interface-filter

* publish  4.2.21-beta.1

* remove `@private_cc` tag

* remove public internal interface

* remove public internal getter setter

* remove public declare internal property

* update

* remove `__editorExtrasTag__`

* remove public internal interface on `js`

* pulish @cocos/build-engine 4.2.21-beta.2

* change tag to `@deprecated_to_user`

* support `@deprecated_to_user`

* publish 4.2.21-beta.3

* finish change request

* change to marked_as_engine_private

* publish 4.2.21-beta.5
2021-12-22 12:55:45 +08:00
Santy-Wang 1209881440 fix bullet fallback (#9732)
* fix bullet fallback

* add comment

* bump build-engine version

* lint

* update package-lock.json

* bump bullet version
2021-11-26 00:57:57 +08:00
Santy-Wang 2b0d7daf3d fix pvd error (#9654) 2021-11-13 15:37:40 +08:00
Santy-Wang 6166745b38 adjust phyx adapter (#9386) 2021-09-26 16:51:45 +08:00
jiaxin.lai 5c6567f59e bullet physics optimization (#9311)
* stash

* stash

* stash

* use @cocos/bullet

* rename

* stash

* update constraint

* naming

* naming

* naming

* naming

* fix

* use compound by default

* stash

* fix

* rename and raycast

* refactor

* add state optimazation

* tweaks

* tweaks

* stash

* rename

* wechat wasm file path

* using promise

* remove @cocos/ammo

* i18n bullet(ammo.js) -> bullet

* tweaks

* update @cocos/build-engine to 4.2.11

* fix sync

* fix autosleep mechanism

* fix stability test

* fix destroy bullet world

* tweaks

* update @cocos/bullet to 1.0.0

* fix

* delete
2021-09-10 16:35:56 +08:00
santy-wang c87577b809 Merge branch 'v3.3.1' of https://gitlab.cocos.net/publics/engine into v3.4 2021-09-09 13:33:35 +08:00
jiaxin.lai 52110737f1 bullet raycast optimization (#9227)
* allow user overwrite internal bullet libs

* update @cocos/ammo to 1.2.0

* more strict

* format
2021-08-24 10:30:31 +08:00
jiaxin.lai b229ec7912 refactor for physics initilization and physx pvd (#9168)
* mnior refactor

* fix

* stash

* move register and init to engine inited event
2021-08-18 13:39:08 +08:00
cary 0a1356a816 Compatible with non-ReadOnly parameters. (#9160) 2021-08-15 22:01:41 +08:00
pandamicro 3f615ab647 Add dt threshold (#9181)
* Add dt threshold

* Fix ci

* Fix game.step and add time unit comments

* Fix adjusted frame time
2021-08-14 23:22:03 +08:00
Santy-Wang ad5887440d use debug to print information (#9082)
* use debug to output information

* use info to output some key information
2021-07-28 13:36:13 +08:00
jiaxin.lai 9e7f40d4cb let pack physx libs optional (#9046) 2021-07-23 13:45:08 +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
santy-wang e58499bb3f Merge branch 'v3.2.0' of https://gitlab.cocos.net/publics/engine into v3.3-merge 2021-06-22 16:59:04 +08:00
minggo 9f2a83330d merge v3.1.2 2021-06-07 16:01:03 +08:00
cary f37099c294 Change the parameter of the math library to Readonly. (#8765)
* Change the parameter of the math library to Readonly.

* fix ci

* fix ci

* fix ci

* fix ci

* fix ci

* delete pool
2021-06-04 17:36:15 +08:00
jiaxin.lai c4cbb38011 optimize bullet and fix js sync to native (#8725)
* stash

* stash

* fix sync js rotation to native

* discard change the average time
2021-06-01 16:38:20 +08:00
jiaxin.lai f58bcd2536 enable physx in preview (#8717)
* enable physx in preview

* remove source map to avoid oom
2021-05-26 17:40:05 +08:00
jiaxin.lai f01c3b3053 override physx instantiate in jsb (#8709)
* fix set damping

* override physx instantiate in jsb
2021-05-25 18:41:41 +08:00
Santy-Wang eb21984063 adjust event name and introduce event_begin_frame (#8708) 2021-05-25 16:11:56 +08:00
jiaxin.lai eac556ddab physx optimize and multi thread in bytedance (#8706)
* sync damping

* stash

* tweaks

* sync damping

* tweaks

* physx muti thread

* tweaks

* tweaks

* tweaks

* tweaks

* sync native physx dampings

* add end of frame to director

* tweaks
2021-05-25 15:45:40 +08:00
jiaxin.lai b4c052017c setKinematict still use old way (#8597) 2021-04-29 19:43:08 +08:00
jiaxin.lai edb52786b0 try js transform optimized by bytedance (#8537)
* try js transform

* adapt

* using getWorldBoundsArray
2021-04-25 20:51:14 +08:00
jiaxin.lai fddce41cae more check for physx (#8529)
* add protect for physx

* use is in scene
2021-04-23 16:47:04 +08:00
jiaxin.lai 3381db3dfb fix get world bounds of physx in bytedance (#8511)
* tweaks

* fix get world bounds of physx in bytedance

* tweaks

* replace magic constant with enums

* more docs
2021-04-22 14:27:46 +08:00
jiaxin.lai 28d62c8393 native physx (#8455)
* Stash

* add plane/capsule shape

* add syncTo/FromNativeTransform

* support trigger/collision events

* set rigid body property on enable

* group distinguish between serialized  and lowlevel

* support trimesh-shape/mass-center

* fix cone/cylinder direction

* support cylinder/cone shape

* tweaks of pmtl

* fix setMesh

* support terrain

* support raycast

* support revolute joint

* support distance joint

* tweaks

* add some API docs

* tweaks

* optimize book and unBook

* tweaks

* tweaks
2021-04-19 20:21:29 +08:00
pandamicro 5005752386 Merge remote-tracking branch 'origin/develop' into v3.1
# Conflicts:
#	cocos/core/builtin/effects.ts
#	cocos/core/builtin/shader-sources/glsl1.ts
#	cocos/core/builtin/shader-sources/glsl3.ts
#	cocos/core/builtin/shader-sources/glsl4.ts
#	cocos/core/gfx/define-class.ts
#	cocos/core/gfx/define.ts
#	cocos/core/gfx/webgl/webgl-buffer.ts
#	cocos/core/gfx/webgl2/webgl2-buffer.ts
#	cocos/core/pipeline/forward/forward-pipeline.ts
#	cocos/core/pipeline/planar-shadow-queue.ts
#	cocos/core/pipeline/render-additive-light-queue.ts
#	cocos/particle/renderer/particle-system-renderer-data.ts
#	editor/assets/chunks/cc-shadow-map-fs.chunk
#	editor/assets/chunks/shading-standard.chunk
2021-03-18 18:33:35 +08:00
jiaxin.lai 47938b21d2 add physics i18n (#8334)
* add physics i18n

* ammo.js -> bullet(ammo.js)

* tweaks
2021-03-15 16:36:57 +08:00
jiaxin.lai 44777deb5c support ccd events in ammo physics (#8325) 2021-03-05 17:33:25 +08:00
jiaxin.lai 6678663a8f fix runtime setMesh in ammo physics (#8315)
* fix setMesh in ammo physics

* re-add if only if isEnabled
2021-03-02 15:37:57 +08:00
jiaxin.lai 4bdc6919bc fix initialize rigidbody with enable state (#8307) 2021-03-02 10:10:30 +08:00
pandamicro c5d4c5c08e Merge remote-tracking branch 'origin/v3.0.0' into device-proof
# Conflicts:
#	cocos/3d/assets/morph-rendering.ts
#	cocos/core/builtin/builtin-res-mgr.ts
#	cocos/core/builtin/effects.ts
#	cocos/core/builtin/shader-sources/glsl1.ts
#	cocos/core/builtin/shader-sources/glsl3.ts
#	cocos/core/builtin/shader-sources/glsl4.ts
#	cocos/core/pipeline/index.jsb.ts
#	cocos/core/pipeline/planar-shadow-queue.ts
#	cocos/core/pipeline/render-additive-light-queue.ts
#	cocos/core/pipeline/shadow/shadow-flow.ts
#	cocos/particle/renderer/trail.ts
#	cocos/physics/ammo/polyfill-atob.ts
#	editor/assets/effects/builtin-spine-two-colored.effect.meta
#	jest.config.js
#	platforms/native/engine/jsb-pipeline.js
#	tests/general/sealed-global-variables.json
2021-02-07 18:33:59 +08:00
Yun Hsiao Wu 78f33fe31b fix conflicts 2021-02-05 11:45:37 +08:00
Yun Hsiao Wu 4fd693adf2 device layer adapt 2021-02-03 17:51:20 +08:00
jiaxin.lai a35806bffd support get bounds in physx (#8230)
* support get worldBounds/Bouding Sphere

* tweaks

* update @cocos/physx to 1.0.1

* update @cocos/physx to 1.0.2
2021-01-28 15:21:05 +08:00
jiaxin.lai 30cb5eb4e9 update api docs and cannon (#8224)
* DOCS

* update @cocos/cannon to 1.2.3
2021-01-28 11:45:39 +08:00
jiaxin.lai a1963ca9b1 support switch body type at phsyx (#8167)
* support switch body type at phsyx

* tweaks

* fix ci
2021-01-23 17:30:15 +08:00
jiaxin.lai 98dfe79632 fix cannon contact normal (#8189)
* fix cannon contact normal

* fix set connected body of cannon constraint
2021-01-23 14:04:18 +08:00
jiaxin.lai 6d4056adb4 fix cannon contact normal (#8156) 2021-01-18 17:58:06 +08:00
jiaxin.lai 6728263167 update physics group during runtime (#8148)
* update physics group during runtime

* change default to ammo

* add physx module

* add physics_physx i18n
2021-01-16 11:36:28 +08:00
jiaxin.lai 3dde2bc20a support kinematic contact (#8098)
* support kinematic contact event

* support ammo kinematic contact event

* tweaks
2021-01-08 13:36:17 +08:00
PP 52bf6ff194 fix atob undefined (#8090)
* fix atob undefined

* fix lint

* remove atob in physics-ammon.ts
2021-01-08 10:18:19 +08:00