mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
e3bd03f037
* api module declare for physics * modify physics api * update physics profile
12 lines
309 B
TypeScript
12 lines
309 B
TypeScript
|
|
import { PhysicsMaterial } from '../../assets/physics/material';
|
|
|
|
export const DefaultPhysicsMaterial: PhysicsMaterial = (() => {
|
|
const result = new PhysicsMaterial();
|
|
result.friction = -1;
|
|
result.restitution = -1;
|
|
return result;
|
|
})();
|
|
|
|
// cc.DefaultPhysicsMaterial = DefaultPhysicsMaterial;
|