UNPKG

@vladkrutenyuk/three-kvy-core

Version:

Everything you need to create any-complexity 3D apps with Three.js. Empower Three.js with a modular, lifecycle-managed context that seamlessly propagates through objects via reusable features providing structured logic.

9 lines (8 loc) 403 B
import { IFeaturable } from "@vladkrutenyuk/three-kvy-core"; import { Collider } from "../Collider"; import type * as THREE from "three"; export declare class ConvexMeshCollider extends Collider { constructor(object: IFeaturable); protected useCtx(ctx: typeof this.ctx): () => void; } export declare function createConvexColliderFromMesh(mesh: THREE.Mesh): ["convexHull", points: Float32Array];