mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
12 lines
306 B
TypeScript
12 lines
306 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;
|