UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

18 lines (17 loc) 657 B
import { PolyScene } from '../../engine/scene/PolyScene'; import { SoftBody } from './SoftBody'; import { TetSoftBodySolverSopNode } from '../../engine/nodes/sop/TetSoftBodySolver'; interface SoftBodyControllerOptions { node: TetSoftBodySolverSopNode; } export declare class SoftBodyController { readonly scene: PolyScene; private _softBody; private _gravity; private _node; constructor(scene: PolyScene, options: SoftBodyControllerOptions); setSoftBody(softBody: SoftBody): void; dispose(): void; step(stepsCount: number, edgeCompliance: number, volumeCompliance: number, preciseCollisions: boolean): void; } export {};