UNPKG

@polygonjs/polygonjs

Version:

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

18 lines (17 loc) 538 B
import { RaycastEventNode } from '../../Raycast'; import { Vector3 } from 'three'; export declare enum CPUIntersectWith { GEOMETRY = "geometry", PLANE = "plane" } export declare const CPU_INTERSECT_WITH_OPTIONS: CPUIntersectWith[]; export declare class RaycastCPUVelocityController { private _node; constructor(_node: RaycastEventNode); private _prevPosition; private _foundVelocityTargetParam; private _hitVelocity; private _hitVelocityArray; process(hitPosition: Vector3): void; reset(): void; }