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
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
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
pandamicro
381505cc28
Merge remote-tracking branch 'cocos-for-editor/v3.8.0' into v3.8.1
...
# Conflicts:
# cocos/3d/framework/mesh-renderer.ts
# cocos/rendering/custom/executor.ts
# cocos/rendering/post-process/passes/fxaa-pass.ts
# cocos/spine/skeleton.ts
2023-07-25 22:16:11 +08:00
Ling Zhan
6aba5f85d9
[fix] physics3d native cct api error ( #15779 )
2023-07-19 18:48:43 +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
bd2608bce7
[opt] cct api refactor ( #15360 )
...
* [opt] cct api refactor
* tweaks
* tweak
2023-06-08 12:22:27 +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
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
Ling Zhan
2fcd242b18
fix physx create terrain height out of range ( #13252 ) ( #12100 )
2022-07-21 10:35:44 +08:00
Ling Zhan
aa001a9f9b
fix PhysX pointer loss percision on Android API 30 ( #10811 ) ( #11624 )
2022-06-29 09:54:29 +08:00
Santy-Wang
60cd1fd00c
fix PhysX error in native platform ( #10263 )
...
* fix physX error in native platform
2022-03-08 17:02:29 +08:00
jiaxin.lai
c7f68eb6e1
fix jsb physics ( #9053 )
2021-07-23 16:29:27 +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
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
cary
4305e4c132
Modify the memory pool and remove the deprecated code. ( #8776 )
2021-06-10 09:06:35 +08:00
cary
7a265315b2
merge node change of v3.1.2 ( #30 )
2021-06-08 15:39:43 +08:00
jiaxin.lai
83c09dbbef
support getAABB and get bounding sphere in jsb ( #8710 )
2021-05-25 19:11:33 +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
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
ff37cc95fd
fix sync node transform on native ( #8558 )
...
* fix sync node transform
* sync node dirty only if in jsb
* tweaks
2021-04-26 21:32:05 +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