Commit Graph

156 Commits

Author SHA1 Message Date
hyde zhou 43b4cb30f2 develop pipeline add subpass (#15166)
pr-test is not ready, skip it.
2023-06-01 10:39:20 +08:00
Yiwen 54363f3b99 physics native removes seting fixedtimestep temporarily (#15187) 2023-05-25 17:04:48 +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 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 9cd5212d18 Character Controller (#14848)
* back.boxCCT works now. capsuleCCT not collider correctly

* refactor

* cct 事件系统初步可用。todo 碰撞filter

* init cct group and mask

* queryFilterCB

* this the first working version

* tweaks

* init bullet character controller. todo: events, autoStep bug, maxSlope bug

* bullet cct onShapehit

* physx native works now. todo: BoxCharacterController

* add physx-native BoxCharacterController

* cct filters redundant events

* cct velocity

* cct detectCollision not working

* cct detectCollisions works in physx

* Character controller supports setDetectCollisions: collision detection without calling move()

* cct center

* bt.CharacterController_setContactOffset,CharacterController_setStepOffset,CharacterController_setSlopeLimit

* bullet cct collision event use last shoot

* tweaks

* cct doc

* fix bullet box-cct hit callback

* add cct export

* feat cct setOverlapRecovery

* cct delete useless code in native physics

* tweaks: cct remove useless code

* fix cct bullet group mask: update group and mask by re-adding cct to physics world. not tested

* tweaks

* tweaks

* fix bullet-cct not emit collision: add bullet updateNeedEmitCCTEvents

* tweaks

* fix cct supports enable/disable

* add cct imp null check

* cct not to expose detectCollisions and OverlapRecovery at this moment

* physx/bullet cct支持节点缩放.todo: bullet cct(setRadius/Height)还有bug 无法运行时改变,只能在初始化的时候设定。physx c++待支持。

* c++ physx cct supports node scale

* fix cct physics c++ forgets to remove cct from scene when destroyed

* [fix] physx cct set climbing mode to PxCapsuleClimbingMode.eCONSTRAINED

* add cct unit test and multiple tweaks

* multiple tweaks and add cct center for physx c++

* tweak

* tweaks

* tweaks

* external version: develop-20

* tweaks
2023-05-16 10:03:13 +08:00
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
zhakesi c580603c98 support set spine animation none (#14619) 2023-04-10 10:38:50 +08:00
Yiwen 37ec507d2c fix the typo in jsb-editbox (#14621) 2023-03-21 16:29:42 +08:00
qiuguohua e68506916c Develop branch adapts to openharmony (#14582) 2023-03-20 14:18:52 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
zhakesi 1b91e80e7d fix spine attach node invalid in native platform (#14494) 2023-03-09 20:00:03 +08:00
Yiwen 633f738b07 Math tune (#14419)
* fix math lib & add unit test
2023-03-02 14:34:53 +08:00
zhakesi b708bc6726 fix to set sockets node transform ahead of effect of physics system (#14162)
* fix to set sockets node transform ahead of effect of physics system

* fix spine cached with socket nodes
2023-03-01 18:28:00 +08:00
zhakesi 4f9c1674b7 fix debug graphics show ahead of time (#14074) 2023-02-07 10:32:02 +08:00
bofeng-song 26bd717d0f Fix the native platform using the wrong FontFace (#13932) 2022-12-28 14:46:42 +08:00
王凯鹏 0c96b6110b [Bug] fix : rename require in editor env (#13843) 2022-12-17 15:21:53 +08:00
江战 f6854cd16e native introduce jsb.window (#13816) 2022-12-16 13:50:59 +08:00
zhakesi d79b84d41c fix dragonbones in editor running with native engine (#13754)
* fix dragonbones in editor running with native engine

* add native ccfactory function getDragonBonesDataByUUID
2022-12-09 11:04:21 +08:00
zhakesi 222608bfd1 fix native dragonbones component not init ui contentSize (#13678) 2022-12-08 11:33:02 +08:00
minggo 5b88e5121d Merge branch 'v3.6.3' into merge_v3.6.3 2022-11-23 16:19:25 +08:00
zhakesi af81f8b553 fix beginSchedule when spine component with no onEnable called. (#13279)
* fix beginSchedule when spine component with no onEnable called.

* fix dragonbones beginSchedule
2022-11-23 13:36:36 +08:00
PP 63ea860a21 HMR (#12524) (#13202) (#13427)
Co-authored-by: Leslie Leigh <leslieleigh@outlook.com>
2022-11-21 09:53:26 +08:00
zhakesi 011a71f732 optimize spine/dragonbones material update (#13416)
* optimize spine/dragonbones material update

* add material assets depends for dragonbones
2022-11-18 10:15:40 +08:00
zhakesi 0985cbe03e fix spine/dragonbones begin-schedule (#13370)
* fix beginSchedule when spine component with no onEnable called.

* fix dragonbones beginSchedule
2022-11-18 10:12:51 +08:00
Yiwen b0e9b0bda0 support fixed constraint (#13209)
* support fixed constraint

* fix typo

* fix typo

* add missing files, clean code

* update cocos/bullet version, remove unused file

* update package version

* update package lock

* fix issues
2022-11-14 10:15:45 +08:00
Yiwen d34ce17a70 PhysX backend use SphericalJoint as its Point2point implementation. (#13245)
* use the correct joint type in PhysX backend

* update
2022-11-10 08:44:18 +08:00
zhakesi c7761e5c19 middleware2d components rendering in native mode (#12788)
* middleware2d components rendering in native mode

* support spine/dragonbones set enable batch

* support spine rendering in batching mode

* get batcher2d instance from root

* process about with type conversion

* fix some code style

* use material hash to merge draw batch

* deal with fill z

* fix dragonbones fill z

* remove some code no used any more

* refactoring some code

* modify some code

* add free memory

* fix clang-tidy

* delete mesh-buffer-layout in destructor

* byte alignment
2022-09-20 13:31:33 +08:00
zhakesi a388541901 spine/dragonbones renderdata use rgba8 color format (#12619)
* add color4b format

* render-2d adapter color format

* spine dragonbones use simple color

* rename V3F_T2F_C4B

* use attributes to init mesh buffer

* remove Vertex2DFormat
2022-09-01 21:44:19 +08:00
zhakesi c48074b0ee fix middlware2d clip (#12605) 2022-08-30 13:39:55 +08:00
zhakesi a6909e876f fix spine tint (#12263) 2022-07-29 11:12:17 +08:00
zhakesi dc91a469ae use native middleware buffer (#12233)
* use native middleware buffer

* fix clang-tidy

* fix clang-tidy

* set useLinkData as meshBuffer's property

* refactoring some code

* set 2d.ini

* fix word component

* fix clip middleware2d

* ...

* function attributes to getAttributes
2022-07-28 19:00:30 +08:00
ChiaNing c538fd6d18 change Renderable2d name (#12213)
* change Renderable2d name

* misc

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-27 14:25:14 +08:00
Santy-Wang 07facb9bf1 optimize memory (#12157) 2022-07-23 15:28:25 +08:00
zhakesi e18e900162 support spine/dragonbones use local native batcher2d (#12141)
* support spine/dragonbones use local native batcher2d

* avoid tiled map use local

* render-entity add set use local

* modify some code

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-07-22 12:54:15 +08:00
timlyeee fc4f024327 update documentations of reflection, bridge and jsbBridgeWrapper (#12097) 2022-07-21 18:31:30 +08:00
Ling Zhan 2fcd242b18 fix physx create terrain height out of range (#13252) (#12100) 2022-07-21 10:35:44 +08:00
minggo 3c264e53ac Revert "V3.6.0 reflection refact (#12096)" (#12102)
This reverts commit 5b9b98f759.
2022-07-20 17:02:17 +08:00
timlyeee 5b9b98f759 V3.6.0 reflection refact (#12096)
* Move reflection and bridge implementation from jsb to native

* remove from jsb.d.ts

* remove jss
2022-07-20 15:32:15 +08:00
Zhang mingzhen 12625f09d8 RenderDrawInfo code sorting (#12055)
* remove blendHash and DrawInfoAttrLayout

* remove code in cpp

* remove blend hash in ts

* remove blendhash of middleware in ts

* remove rebundant code

* remove stencilStage in drawinfo

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-19 13:35:54 +08:00
yangchao 3973cf0a0c fix : video player state show error (#11992) 2022-07-16 17:50:27 +08:00
zhakesi 775d2b43cc set buffer size for middleware (#12013) 2022-07-15 14:21:55 +08:00
ChiaNing eeb210d55b fix ui render custom material bug (#11989)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-14 17:28:27 +08:00
Santy-Wang 945e715a9c restructure life cycle (#11971)
* restructure life cycle

* fix bugs

* optimize

* remove some code

* refine

* fix dragonbone custom material

* fix particle crash

* changed to CCAssert

Co-authored-by: liqiao <liqiao@cocos.com>
2022-07-14 16:33:30 +08:00
Zhang mingzhen 05bde85ed7 V3.6.0 batcher2d code sorting (#11943)
* parentOpacity move to RenderEntity

(cherry picked from commit f1d9b5cb55c1912bd61ba490ec46ce7108097556)

* parentOpacity remove from entity and put into funtion parameters

* unify dynamic and static handle process

* reform entity shared buffer structure

* modify default value of struct

* set drawinfo type for spine/dragonbones

* remove legacy method

* reform color .type as uint8 from float

* CI fix

* remove static-cast

* CI fix

* CI fix

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
Co-authored-by: liqiao <liqiao@cocos.com>
2022-07-13 15:48:31 +08:00
zhakesi 40769330da fix spine/dragonbones drawinfo clear (#11919)
* fix spine/dragonbones drawinfo clear

* fix clang tidy
2022-07-11 16:18:14 +08:00
Zhang mingzhen b32830a3e8 V3.6.0 batcher2d to native (#11592) 2022-07-08 17:10:48 +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
mmyduckx 4fdf948d24 refactor downloaderTask API style (#11697) 2022-06-29 11:34:15 +08:00
Ling Zhan aa001a9f9b fix PhysX pointer loss percision on Android API 30 (#10811) (#11624) 2022-06-29 09:54:29 +08:00