import { type Vec3 } from '../math/vec3.js'; import type { PmoveTraceResult } from './types.js'; export interface FixStuckParams { readonly origin: Vec3; readonly mins: Vec3; readonly maxs: Vec3; readonly trace: FixStuckTraceFn; } export type FixStuckResult = 'good-position' | 'fixed' | 'no-good-position'; export interface FixStuckOutcome { readonly result: FixStuckResult; readonly origin: Vec3; } export type FixStuckTraceFn = (start: Vec3, mins: Vec3, maxs: Vec3, end: Vec3) => PmoveTraceResult; /** * TypeScript port of G_FixStuckObject_Generic from rerelease p_move.cpp. Attempts to * nudge a stuck bounding box out of solid space by probing the faces of the box and * moving towards the opposite side, keeping the smallest successful displacement. */ export declare function fixStuckObjectGeneric(params: FixStuckParams): FixStuckOutcome; //# sourceMappingURL=stuck.d.ts.map