UNPKG

threepipe

Version:

A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.

39 lines 1.14 kB
import { Object3DComponent } from './Object3DComponent'; import { Vector3 } from 'three'; import { IAnimationLoopEvent } from '../../../core'; /** * Sample component that simulates a basic rigid body with forces, impulses, and velocity */ export declare class SampleBodyComponent extends Object3DComponent { static StateProperties: string[]; static ComponentType: string; running: boolean; mass: number; damping: number; velocity: Vector3; acceleration: Vector3; update({ deltaTime }: IAnimationLoopEvent): boolean | undefined; addForce(force: { x?: number; y?: number; z?: number; }): void; applyImpulse(impulse: { x?: number; y?: number; z?: number; }): void; setVelocity(velocity: { x: number; y: number; z: number; }): void; stop(): void; start(): void; reset(): void; MoveLeft: () => void; MoveRight: () => void; PushForward: () => Promise<void>; PushBackward: () => Promise<void>; } //# sourceMappingURL=../../../src/plugins/extras/components/SampleBodyComponent.d.ts.map