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
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
Yiwen
3713957624
collider constraint ( #14068 )
...
* collider constraint
* rm uncessary function import
* bullet doesn't prevent dynamic rigid body using simplex collider
* convex mesh with dynamic rigid body is allowed
* clear useless imports
2023-04-20 14:32:48 +08:00
PP
386ec2895a
[cherry-pick] AOT-3: optimize uinstrict code ( #14315 ) ( #14523 )
...
* AOT: optimize uinstrict code
- mark some unstrict code as TODO
- remove some unstrict code
* update comment
* remove ts-check
# Conflicts:
# cocos/2d/framework/deprecated.ts
# cocos/asset/assets/image-asset.jsb.ts
# cocos/asset/assets/texture-base.ts
# cocos/core/assets/image-asset.ts
# cocos/core/math/rect.ts
# cocos/core/scene-graph/scene-globals.jsb.ts
# cocos/native-binding/impl.ts
# cocos/scene-graph/node-dev.ts
# cocos/scene-graph/scene-globals.ts
# exports/sorting.ts
2023-03-10 13:36:45 +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
Ling Zhan
4cbb8dc476
[fix] collider does not use physics default material directly #12931 ( #13852 )
...
* [fix] collider does not use physics default material directly #12931
* tweaks
2022-12-20 15:52:17 +08:00
Knox
a3d924e5e5
Repair the problem of non-standardized property settings ( #13667 )
...
* refine code, add default values and update types
2022-12-06 11:17:22 +08:00
Ling Zhan
3a0df15c31
[feat] in physics settings, default material is set through file ( #13464 )
...
* [feat] in physics settings, default material is set through file
2022-11-23 10:23:28 +08:00
Ling Zhan
f29b365d3e
[feat] enable/disable physics system through configuration ( #13455 )
2022-11-21 17:30:57 +08:00
Ling Zhan
5ee54d97ff
Curve raycast ( #13086 )
...
* PhysicsSystem add line-segments-raycast
* 规范接口注释
* PhysicsRayResult add id property
* tweak
* tweak
* 接口命名
* tweak
* native
* add PhysicsLineStripCastResult
* tweak
* tweak
2022-11-15 13:47:52 +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
minggo
7294de16f6
Adjust core import ( #13230 )
...
* fix import style of core module
* fix decorator usage
2022-11-07 15:01:31 +08:00
minggo
95a76235b6
Adjust some files ( #12910 )
...
`cocos/core` should not depend other modules, so move some files out of `cocos/core`:
- move some files from `cocos/core` to `cocos/game`
- director.ts
- splash-screen.ts
- game.ts
- move `cocos/core/root.ts` to `cocos/root.ts` as there is not better module to contain `root.ts`.
- move `cocos/core/platform/view.ts` to `cocos/ui/view.ts` as screen related logic is moved to `cocos/core/platform/screen.ts`
2022-09-28 09:34:35 +08:00
minggo
0d7c5c8f56
move cocos/core/scene-graph to cocos/scene-graph ( #12868 )
...
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
- component.ts
- component-event-handler.ts
- component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`:
- missing-script.ts
- model-renderer.ts
- renderer.ts
- camera-component.ts
* move `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
santy-wang
f33523227f
sync v3.6.1 to develop
2022-09-19 14:00:54 +08:00
fqamic
18d2d57447
improve: update external version and remove some redundant codes ( #12759 )
...
* feat: update external version
* improve: remove redundancy code
2022-09-14 16:45:40 +08:00
minggo
2f10f48c15
adjust some folders ( #12712 )
...
move cocos/core/asset-manager to cocos/asset/asset-manager
move cocos/core/assets to cocos/asset/assets
merge cocos/core/builtin to cocos/asset/asset-manager
2022-09-07 18:45:54 +08:00
PP
6e715d8b94
fix wrong CC_PHYSICS_AMMO constant ( #12577 )
2022-08-30 01:01:39 +08:00
QingliWang
6a8f53b186
Add features for XR developement. ( #12413 )
...
* Change Android mainloop, add global config and template projects for XR.
* Change gfx/gles device's process flow for XR, working with other PRs, waiting.
* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.
* Change render process for XR.
* Develop XR input and events.
* Develop 3D feature of UI widgets and raycast effect for XR.
Co-authored-by: fqamic <fqamic@vip.qq.com >
2022-08-22 16:34:45 +08:00
Ling Zhan
811ed11bfa
default physics material useing internal asset : default-physics-mate… ( #11855 )
...
* default physics material useing internal asset : default-physics-material.pmtl. todo: Project Setting's physics material config need to use this asset too. (#12662 )
* support set default physics material value from project setting panel. It will effect the packaging processing, and scene loading(todo). this value will not be saved to default-physics-material.pmtl.
* fix physics-system unit test failure: physics system 's constructAndRegister() will directly init default physics material if the default physics material asset is ready
* minor modification of PhysicsSystem::_updateMaterial
2022-07-21 10:37:15 +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
df1594c8d8
Gameview editor macro ( #11568 )
...
* GameView related EDITOR macro modify
* remove debug code
* fix ci
* fix review
* fix review
2022-06-20 10:05:29 +08:00
pandamicro
dba83c270d
Fix multi blank lines ( #11116 )
2022-05-17 11:56:06 +08:00
Santy-Wang
464c9dd044
optimize api doc i18n ( #10965 )
...
* optimize api doc i18n
* refine docs
* refine
* refine
* adjust grammar error
2022-05-07 10:52:56 +08:00
Santy-Wang
23de9188ba
V3.5 docs ( #10898 )
...
* adjust api docs and delete useless annotation
* delete useless annotation
2022-04-27 15:22:22 +08:00
PP
d749bbe1c4
remove legacyPublic tag ( #10702 )
2022-04-08 19:41:20 +08:00
minggo
be735449af
Revert "remove some deprecated api ( #10656 )" ( #10694 )
...
This reverts commit a1b1fc5a09 .
2022-04-08 11:51:06 +08:00
minggo
a1b1fc5a09
remove some deprecated api ( #10656 )
...
* remove some deprecated api
2022-04-07 16:31:02 +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
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
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
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
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
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
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
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
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
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
jiaxin.lai
474724a128
Typing&deprecated ( #8069 )
...
* typing contact data
* remove raycast relative API in render scene
2020-12-31 17:41:34 +08:00
jiaxin.lai
fadf3d9b00
support dynamic select physics backend ( #8048 )
...
* support dynamic select physics backend
* skip physics ray group
* fix eslint
* lint
2020-12-30 15:47:06 +08:00
jiaxin.lai
d169d90713
support constraints auto-scaling ( #8015 )
...
* lint
* cannon constraint support auto-scaling
* fix kinematic/static body
* tweaks
* remove onLoad that was not necessary
* ammo constraint support auto-scaling
* physx joint refactor
* using fastRemoveAt
2020-12-25 16:36:18 +08:00
Santy-Wang
ad4bff3988
Restructure Module ( #7968 )
...
* module restructure
* refine
* restructure module
* merge
* revert
* fix ci
* update import path of unit-test
* split 2d and ui
* add more module
* change audio adapter
* rename primitive
* config wechat plugin
* merge
* add category config
* merge
* merge
2020-12-24 19:07:26 +08:00
jiaxin.lai
0dc393b884
3d physx ( #8005 )
...
* support physx physics engine
* tweaks
* stash contact event
* update @cocos/physx
* basic event impl
* stash
* support BYTEDANCE
* stash
* stash
* fix inertia
* PhysX mesh collider
* PhysX static trimesh geometry
* PhysX terrain collider
* add kinematic
* bytedance plane collider
* bytedance v2
* support trigger
* bytedance triangle mesh support
* raycast filter
* raycast support
* stash all
* stash
* center of mass
* stash
* stash fixed joint
* stash
* stash
* physx hinge joint
* physx distance joint
* tweaks
* tweaks
* bytedance raycast
* tweaks
* update mass
* tweaks
* tweaks
* joint
* stash
* bytedance adapters
* tweaks
* stash
* apply force/impulse
* add updateEventListener
* Fixed some loose usage
* add getShapeFlags/getShapeMaterials
* tweaks
* optimize bytedance adapter
* fix isStaticsOrKinematic
* support cylinder & cone
* contact normal
* update @cocos/physx to 1.0.0-beta.5
* rigid body tweaks
* add syncAfterEvents
* hinge constraint
* filter static - static
* ammo refactor
* cannon refactor
* ammo p2p constraint refactor
* update @cocos/ammo to 1.0.8
* lint ammo
* more lint
* docs
* tweaks
* avoid direct use globalThis
2020-12-24 13:45:03 +08:00