Yiwen
9b0996a17d
[fix] assign physics system to PhysicsSystem._instance, before using it ( #15331 )
2023-06-06 15:04:07 +08:00
Ling Zhan
0c2d34099d
[fix] physx Character Controller filter bug ( #15291 )
2023-06-02 14:47:00 +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
Yiwen
96c4927a28
add support to change connected body for joint component ( #14609 )
...
* complete implement of joint.setConnectedBody
* fix c++ joint issues
* clean code
2023-05-17 15:24:39 +08:00
Yiwen
923278904a
Fix hinge constraint rotation ( #14085 )
...
* Fix hinge constraint rotation
1. fixed hinge constraint rotation
2. correct docs
3. add tooltip for hinge constraint
* stage
* updates
* update
* vanishing pivotB when connected to world frame
* stage
* update fixed constraint behavior when bind to world frame
2023-05-17 15:23:35 +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
313c58fe33
Improve utils api doc ( #13922 )
2022-12-28 15:04:56 +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
江战
cade7f10d4
JSB: bind some geometry types ( #13681 )
2022-12-07 14:26:32 +08:00
Yiwen
841571628c
fix the bug that native physics system emits tons of wrong events ( #13683 )
2022-12-07 11:20:02 +08:00
Yiwen
924e5a14d7
apply an offset to WrapprtObjectID so that we can use 0 to represent null (world frame) ( #13391 )
2022-11-16 10:44:04 +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
Ling Zhan
1aad162030
[fix] [physx-backend] Dynamically setting the convex property of the MeshCollider after rigid body generation has no effect #12048 ( #13312 )
2022-11-11 08:44:25 +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
Yiwen
23bae83dca
fix a bug in Native physics engine ( #13243 )
...
* fix a bug in Native physics engine
* add missing modifications
2022-11-04 17:17:05 +08:00
Ling Zhan
666341caa4
Merge pull request #12911 from lealzhan/physxUpdateCenterOfMass
...
physx backend remove updateCenterOfMass
2022-10-27 18:55:05 +08:00
lingzhan
1eef64d2ca
more
2022-09-27 18:18:10 +08:00
lingzhan
92071ef738
physx backend remove updateCenterOfMass
2022-09-27 15:53:59 +08:00
Yiwen
02d88c02d5
fix cylinder/cone collider's scale ( #12860 )
2022-09-26 10:10:48 +08:00
minggo
d40b8739bc
Merge branch 'v3.6.0' into develop_merge_v3.6
2022-07-18 10:38:14 +08:00
Ling Zhan
aa001a9f9b
fix PhysX pointer loss percision on Android API 30 ( #10811 ) ( #11624 )
2022-06-29 09:54:29 +08:00
minggo
271cc5cf23
Remove some format rule ( #10919 )
...
* remove some rules
* format all codes with new format rule
2022-05-04 13:09:24 +08:00
minggo
444bfe31c4
Refactor CC_NEW/CC_DELETE ( #10810 )
...
* replace CC_NEW/CC_DELETE with ccnew/delete
2022-04-21 16:39:34 +08:00
Cocos Robot
997cd1044c
[ci skip][AUTO]: Automated clang-format update: 3f0460bee6caa9fcac9629e2ef18ee4ea08b3656 ( #10501 ) ( #10536 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-03-28 11:53:36 +08:00
minggo
ee5636c573
Replace map with unordered_map ( #10501 )
...
* replace ccstd::map with ccstd::unordered_map
2022-03-28 11:49:17 +08:00
Cocos Robot
322cb0664b
[ci skip][AUTO]: Automated clang-format update: b779f0a2e81e2dab3194eff8e850d5a8910c7c7a ( #10459 ) ( #10464 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-03-23 16:56:31 +08:00
minggo
ccc84b06b6
replace std::unordered_map with ccstd::unordered_map ( #10459 )
...
* replace std::unordered_map with ccstd::unordered_map
2022-03-23 16:44:06 +08:00
Cocos Robot
568b9b9910
[ci skip][AUTO]: Automated clang-format update: b5915aa03b753a6e67f09d03980608e3cdce2887 ( #10442 ) ( #10448 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-03-22 18:12:49 +08:00
minggo
4ef2fdea21
repalce std::map with ccstd::map ( #10442 )
2022-03-22 18:05:31 +08:00
Cocos Robot
24d84664f8
[ci skip][AUTO]: Automated clang-format update: 3de15842004cba2142ec0fecd82876d8f6a28236 ( #10402 ) ( #10424 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-03-21 16:04:49 +08:00
minggo
34bf14269c
unify stl ( #10402 )
...
* add ccstd::vector
* replace cc::vector with ccstd::vector
* replace std::vector with ccstd::vector
* do not include <vector>
2022-03-21 15:55:02 +08:00
minggo
7f24f34b22
Merge branch 'v3.5.0' into v3.6_merge_v3.5.0
2022-01-25 19:52:06 +08:00
minggo
f08555248f
fix conflict
2022-01-24 17:23:03 +08:00
Yun Hsiao Wu
14a17c9d22
license upgrade ( #4210 )
2022-01-24 17:18:47 +08:00
minggo
5410a48a58
Implement more logic in native ( #4131 )
...
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com >
Co-authored-by: dumganhar <dumganhar@gmail.com >
Co-authored-by: mmyduckx <308303735@qq.com >
Co-authored-by: Patrice Jiang <397136899@qq.com >
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com >
2022-01-07 18:39:40 +08:00
Santy-Wang
20957f8e7f
fix native restart crashed due to PhysX ( #4074 )
...
* fix native restart crashed due to PhysX
2021-12-02 09:46:54 +08:00
jiaxin.lai
02b04f47eb
more strict for physx api ( #3846 )
2021-08-25 09:58:11 +08:00
Santy-Wang
69eca07b53
fix physX crash ( #3843 )
2021-08-21 13:43:43 +08:00
jiaxin.lai
502deafb8c
fix physx contact event ( #3790 )
...
* fix physx contact event
2021-08-04 11:22:21 +08:00
jiaxin.lai
9ffe3afe41
readd getNodeHandle bindings ( #3768 )
2021-07-26 17:05:40 +08:00
jiaxin.lai
e6009c4a3a
support runtime set terrain and mesh ( #3767 )
2021-07-26 15:30:43 +08:00
jiaxin.lai
28e81111d7
support ccd ( #3757 )
2021-07-23 16:14:07 +08:00
江战
fcb82a20d6
Add BigInt to se::Value ( #3706 )
2021-07-14 09:48:52 +08:00
minggo
43c288196e
Merge v3.1.2 ( #3691 )
...
* add jsb binding for v3.1.2 (#3611 )
* update (#3615 )
* optimize cleanTracks method (#3620 )
* Fix setMaterial memory leak (#3622 )
* fix RenderAdditiveLightQueue memory leaks for v3.1.2 (#3616 )
* fix shadows GFXBuffer memory leaks for v3.1.2 (#3630 )
* [ci skip][AUTO]: updating jsbinding automatically: dea52c7b (#3633 )
Co-authored-by: cocos-robot <engine-deploy@cocos.com >
* fix erase shared body (#3635 )
* Native PCF change sync to native-engine for v3.1.2 (#3652 )
* support getAABB and getBoundingShpere (#3563 ) (#3671 )
* fix compiling error
Co-authored-by: troublemaker52025 <troublemaker52025@outlook.com >
Co-authored-by: mmyduckx <308303735@qq.com >
Co-authored-by: wangyuzhi233 <78699242+wangyuzhi233@users.noreply.github.com >
Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com >
Co-authored-by: cocos-robot <engine-deploy@cocos.com >
Co-authored-by: jiaxin.lai <goodlaijiaxin@qq.com >
2021-07-13 09:43:25 +08:00
minggo
aa522396a3
CC_INLINE to inline ( #3664 )
2021-06-28 16:41:13 +08:00
GengineJS
979c0d950e
AABB shared data ( #3655 )
2021-06-28 15:31:57 +08:00
minggo
2e364edd24
merge v3.2 to v3.3
2021-06-22 17:38:07 +08:00
GengineJS
b8f54069c0
[Add] Native scene object update function ( #3638 )
2021-06-22 16:41:13 +08:00