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) 460 B
import { IFeaturable } from "@vladkrutenyuk/three-kvy-core"; import { Collider } from "../Collider"; import type * as THREE from "three"; export declare class TrimeshCollider extends Collider { constructor(object: IFeaturable); protected useCtx(ctx: typeof this.ctx): () => void; } export declare function createTrimeshColliderArgsFromMesh(mesh: THREE.Mesh): ["trimesh", vertices: Float32Array<ArrayBufferLike>, indices: Uint32Array<ArrayBufferLike>];