Initial project import
This commit is contained in:
25
node_modules/three-stdlib/misc/ConvexObjectBreaker.d.ts
generated
vendored
Normal file
25
node_modules/three-stdlib/misc/ConvexObjectBreaker.d.ts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Object3D, Plane, Vector3 } from '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
|
||||
}
|
||||
Reference in New Issue
Block a user