/**
 * Creates a new spring particle
 *
 * @public
 */ function createSpringParticle(position, options) {
    return {
        position: position.clone(),
        prevPosition: position.clone(),
        originalPosition: position.clone(),
        animPosition: position.clone(),
        originalRotation: options?.originalRotation?.clone() ?? null,
        mass: options?.mass ?? 1.0,
        damping: options?.damping ?? 0.95,
        fixed: options?.fixed ?? false,
        node: options?.node ?? null,
        lastFramePosition: position.clone()
    };
}

export { createSpringParticle };
//# sourceMappingURL=spring_particle.js.map
