import type { Matrix4 } from './matrix4'; import type { Vector3 } from './vector3'; /** * 射线碰撞相机参数 */ export type RayCasterCamera = { /** * 位置 */ position: Vector3; /** * 视图投影逆矩阵 */ inverseViewProjectMatrix: Matrix4; }; /** * 射线碰撞结果 */ export type RayCastResult = { /** * 相交点 */ point: Vector3; /** * 相交距离 */ distance: number; /** * 相交构件ID */ id?: string; };