@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
18 lines • 1.28 kB
TypeScript
/**
* Implementation of FABRIK algorithm, "Forward And Backward Reaching Inverse Kinematics"
* This implementation deals with single chain at a time, without support for multiple effectors
* see "FABRIK: a fast, iterative solver for inverse kinematics"
* @param {number} size number of points in the chain
* @param {Float32Array|number[]} positions
* @param {Float32Array|number[]} lengths
* @param {number} origin_x
* @param {number} origin_y
* @param {number} origin_z
* @param {number} target_x
* @param {number} target_y
* @param {number} target_z
* @param {number} [max_iterations] More steps will lead to higher accuracy, but at the cost of computation. Generally solution will be reached in just a few iteration so this is just a ceiling
* @param {number} [distance_tolerance] Minimum squared distance to be achieved to the target, used to terminate earlier before maximum number of iterations is reached
*/
export function fabrik3d_solve_primitive(size: number, positions: Float32Array | number[], lengths: Float32Array | number[], origin_x: number, origin_y: number, origin_z: number, target_x: number, target_y: number, target_z: number, max_iterations?: number, distance_tolerance?: number): void;
//# sourceMappingURL=fabrik3d_solve_primitive.d.ts.map