mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-27 13:02:41 +08:00
811ed11bfa
* 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
10 lines
209 B
Plaintext
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
|
|
} |