/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { Line3, Vector3 } from 'three'; import type { Environment } from '../environment/environment-manager.js'; export interface CapsuleInfo { radius: number; segment: Line3; } /** * Handles collision detection and response for capsule shapes * Reuses temporary objects for performance */ export declare class CollisionHandler { private tempSegment; private tempPosition; private positionDelta; private aabbox; private rayVector; private localSegment; private localTriPoint; private localCapsulePoint; private tempMatrix4; constructor(); /** * Handle capsule collision across multiple environments and return corrected position * Modifies velocity to remove collision penetration */ handleCapsuleCollision(environments: Environment[], capsuleInfo: CapsuleInfo, playerPosition: Vector3, playerVelocity: Vector3): Vector3; /** * Perform shapecast collision detection for capsule against environment with matrix transform */ private shapecastCapsule; } //# sourceMappingURL=collision-handler.d.ts.map