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.

23 lines (22 loc) 766 B
import { IFeaturable } from "@vladkrutenyuk/three-kvy-core"; import { Rigidbody } from "./Rigidbody.js"; export declare const SyncMode: Readonly<{ None: 0; Obj2Body: 2; Body2Obj: 4; }>; export type SyncModeValue = (typeof SyncMode)[keyof typeof SyncMode]; /** * @see {@link https://github.com/vladkrutenyuk/three-kvy-core/blob/main/src/addons/RigidbodyKinematic.ts | Source} */ export declare class RigidbodyKinematic extends Rigidbody { readonly isRigidbodyKinematic = true; private _syncMode; constructor(object: IFeaturable, props?: { syncMode?: SyncModeValue; }); protected useCtx(ctx: typeof this.ctx): () => void; getSyncMode(): SyncModeValue; setSyncMode(mode: 0 | 2 | 4): this; onBeforeRender(): void; }