/** * 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 { Vector3 } from 'three'; /** * Static physics utility functions for locomotion * Performance-optimized with no object allocations */ export declare class PhysicsUtils { static calculateSpringForce(displacement: number, springConstant: number): number; static calculateDampingForce(velocity: number, dampingConstant: number): number; static clampForce(force: number, maxForce: number): number; static applyGravity(velocity: Vector3, gravityDir: Vector3, gravity: number, gravityMultiplier: number, delta: number): void; static applyFloatingForce(velocity: Vector3, upAxis: Vector3, springForce: number, dampingForce: number, maxForce: number, mass: number, delta: number): void; static calculateTargetDistance(floatHeight: number, capsuleRadius: number): number; static isGrounded(groundDistance: number, groundingThreshold: number): boolean; static calculateGroundingThreshold(floatHeight: number, capsuleRadius: number, buffer?: number): number; static isWalkableSlope(surfaceNormal: Vector3, upAxis: Vector3, maxSlope: number): boolean; static capVelocity(velocity: Vector3, maxVelocity: number): void; } //# sourceMappingURL=physics-utils.d.ts.map