UNPKG

@polygonjs/polygonjs

Version:

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

10 lines (9 loc) 601 B
import { Object3D } from 'three'; import { ClothController } from './ClothController'; import type { PolyScene } from '../../engine/scene/PolyScene'; import type { ClothSolverSopNode } from '../../engine/nodes/sop/ClothSolver'; export declare function createOrFindClothController(scene: PolyScene, node: ClothSolverSopNode, clothObject: Object3D): { controller: ClothController; } | undefined; export declare function clothControllerNodeIdFromObject(clothObject: Object3D): number | undefined; export declare function clothControllerFromObject(clothObject: Object3D): ClothController | undefined;