JSPM

@rbxts/ccdik-controller

1.0.1-ts3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q49094F
  • License MIT

Alternate inverse kinematics method for Roblox Motor6D rigs. roblox-ts typings for datlass's CCDIK Controller.

Package Exports

  • @rbxts/ccdik-controller
  • @rbxts/ccdik-controller/src/init.lua

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/ccdik-controller) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.