UNPKG

polygonjs-engine

Version:

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

43 lines (42 loc) 1.98 kB
import { EventContext } from '../../../../scene/utils/events/_BaseEventsController'; import { RaycastEventNode } from '../../Raycast'; import { Intersection } from 'three/src/core/Raycaster'; import { AttribType } from '../../../../../core/geometry/Constant'; import { RaycastCPUVelocityController } from './VelocityController'; export declare class RaycastCPUController { private _node; private _mouse; private _mouse_array; private _raycaster; private _resolved_targets; readonly velocity_controller: RaycastCPUVelocityController; constructor(_node: RaycastEventNode); update_mouse(context: EventContext<MouseEvent>): void; process_event(context: EventContext<MouseEvent>): void; private _plane; private _plane_intersect_target; private _intersect_with_plane; private _intersect_with_geometry; private _resolve_geometry_attribute; static resolve_geometry_attribute(intersection: Intersection, attribute_name: string, attrib_type: AttribType): string | number | undefined; private static _vA; private static _vB; private static _vC; private static _uvA; private static _uvB; private static _uvC; private static _hitUV; static resolve_geometry_attribute_for_mesh(intersection: Intersection, attribute_name: string, attrib_type: AttribType): string | number | undefined; static resolve_geometry_attribute_for_point(intersection: Intersection, attribute_name: string, attrib_type: AttribType): string | number | undefined; private _found_position_target_param; private _hit_position_array; private _set_position_param; private _prepare_raycaster; update_target(): void; private _update_target_from_node; private _update_target_from_scene_graph; update_position_target(): Promise<void>; static PARAM_CALLBACK_update_target(node: RaycastEventNode): void; static PARAM_CALLBACK_print_resolve(node: RaycastEventNode): void; private print_resolve; }