INNER CODE UNIT · TypeScript
ContactMaterial
GameFrameX/GameFrameX · LayaBox/engine/types/cannon.d.ts:361
export class ContactMaterial {
id: number;
materials: Material[];
friction: number;
restitution: number;
contactEquationStiffness: number;
contactEquationRelaxation: number;
frictionEquationStiffness: number;
frictionEquationRelaxation: number;
constructor(m1: Material, m2: Material, options?: IContactMaterialOptions);
}
export interface IMaterialOptions {
friction?: number;