ConvexObjectBreaker.d.ts 610 B

12345678910111213141516171819
  1. import {
  2. Object3D,
  3. Plane,
  4. Vector3
  5. } from '../../../src/Three';
  6. export interface CutByPlaneOutput {
  7. object1: Object3D;
  8. object2: Object3D;
  9. }
  10. export class ConvexObjectBreaker {
  11. constructor( minSizeForBreak?: number, smallDelta?: number );
  12. prepareBreakableObject( object: Object3D, mass: number, velocity: Vector3, angularVelocity: Vector3, breakable: boolean ): void;
  13. subdivideByImpact( object: Object3D, pointOfImpact: Vector3, normal: Vector3, maxRadialIterations: number, maxRandomIterations: number ): Object3D[];
  14. cutByPlane( object: Object3D, plane: Plane, output: CutByPlaneOutput ): number;
  15. }