INNER CODE UNIT · TypeScript
ContactEquation
GameFrameX/GameFrameX · LayaBox/engine/types/cannon.d.ts:337
export class ContactEquation extends Equation {
restitution: number;
ri: Vec3;
rj: Vec3;
ni: Vec3;
constructor(bi: Body, bj: Body);
getImpactVelocityAlongNormal(): number;
}
export interface IContactMaterialOptions {
friction?: number;
restitution?: number;
contactEquationStiffness?: number;