mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
19 lines
610 B
TypeScript
19 lines
610 B
TypeScript
import {
|
|
Object3D,
|
|
Plane,
|
|
Vector3
|
|
} from '../../../src/Three';
|
|
|
|
export interface CutByPlaneOutput {
|
|
object1: Object3D;
|
|
object2: Object3D;
|
|
}
|
|
|
|
export class ConvexObjectBreaker {
|
|
|
|
constructor( minSizeForBreak?: number, smallDelta?: number );
|
|
prepareBreakableObject( object: Object3D, mass: number, velocity: Vector3, angularVelocity: Vector3, breakable: boolean ): void;
|
|
subdivideByImpact( object: Object3D, pointOfImpact: Vector3, normal: Vector3, maxRadialIterations: number, maxRandomIterations: number ): Object3D[];
|
|
cutByPlane( object: Object3D, plane: Plane, output: CutByPlaneOutput ): number;
|
|
|
|
}
|