@rbxts/ccdik-controller
TypeScript icon, indicating that this package has built-in type declarations

1.0.1-ts3 • Public • Published

CCDIK Controller

Cyclic Coordinate Descent Inverse Kinematics Controller

Installation

NPM

Run npm i @rbxts/ccdik-controller in your project directory.

Usage

import CCDIKController, { ConstraintsValue } from "@rbxts/ccdik-controller";

// optional constraints parameter
const constraints = new Map<Motor6D, ConstraintsValue>();
constraints.set(new Instance("Motor6D"), {
	ConstraintType: "Hinge",
	LowerAngle: 5,
	UpperAngle: 10,
	AxisAttachment: "foo",
	JointAttachment: "baz",
});
const ikController = new CCDIKController([motor1, motor2, motor3], constraints);

ikController.CCDIKIterateUntil(new Vector3(5, 5, 5));

If you would like to contribute to CCDIK Controller, please file Pull Requests and Issues in its GitHub repository, and not in the repository of this package.

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @rbxts/ccdik-controller

    Weekly Downloads

    1

    Version

    1.0.1-ts3

    License

    MIT

    Unpacked Size

    37.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • tacheometry