@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
16 lines • 934 B
TypeScript
/**
* Based on http://theorangeduck.com/page/simple-two-joint
* @param {Vector3} a Root bone position
* @param {Vector3} b Second bone position
* @param {Vector3} c Effector position
* @param {Vector3} t Target position
* @param {number} eps EPSILON value, small value for rounding error compensation
* @param {Quaternion} a_gr Global rotation of root bone
* @param {Quaternion} b_gr Global rotation of second bone
* @param {Quaternion} a_lr local rotation for root bone, this will be updated as a result
* @param {Quaternion} b_lr local rotation for second bone, this will be updated as a result
*/
export function two_joint_ik(a: Vector3, b: Vector3, c: Vector3, t: Vector3, eps: number, a_gr: Quaternion, b_gr: Quaternion, a_lr: Quaternion, b_lr: Quaternion): void;
import Vector3 from "../../../core/geom/Vector3.js";
import Quaternion from "../../../core/geom/Quaternion.js";
//# sourceMappingURL=two_joint_ik.d.ts.map