Files
cocos4/editor/assets/physics/default-physics-material.pmtl
T
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

10 lines
209 B
Plaintext

{
"__type__": "cc.PhysicMaterial",
"_name": "default-physics-material",
"_objFlags": 0,
"_native": "",
"_friction": 0.8,
"_rollingFriction": 0.1,
"_spinningFriction": 0.1,
"_restitution": 0.1
}