import { Component, ContextManager } from '@zcomponent/core'; import { SixDofConstraint } from './SixDofConstraint'; import { PhysicsConstraintBaseConstructorProps } from './PhysicsConstraint'; interface SpringConstraintConstructorProps extends PhysicsConstraintBaseConstructorProps { /** * @zprop * @zdefault 0 */ minDistance?: number; /** * @zprop * @zdefault 0 */ maxDistance?: number; /** * @zprop * @zdefault 0 */ stiffness?: number; /** * @zprop * @zdefault 0 */ damping?: number; } /** * Creates a SpringConstraint, which is a type of SixDofConstraint. This constraint applies a force at the ends which is proportional * to the distance between ends, and a stiffness and damping factor. The force is calculated as (stiffness * positionError) - (damping * velocity) * * This constraint applies a force at the ends which is proportional to the distance between ends, and a stiffness and damping factor. * * @zbehavior * @zicon lock * @zparents three/Object3D/** * @zgroup Physics Constraints */ export declare class SpringConstraint extends SixDofConstraint { constructor(contextManager: ContextManager, instance: Component, props: SpringConstraintConstructorProps); } export {};