https://github.com/tacheometry/rbxts-ccdik-controller
Alternate inverse kinematics method for Roblox Motor6D rigs. roblox-ts typings for datlass's CCDIK Controller.
https://github.com/tacheometry/rbxts-ccdik-controller
Last synced: 12 months ago
JSON representation
Alternate inverse kinematics method for Roblox Motor6D rigs. roblox-ts typings for datlass's CCDIK Controller.
- Host: GitHub
- URL: https://github.com/tacheometry/rbxts-ccdik-controller
- Owner: tacheometry
- License: mit
- Created: 2021-07-25T12:56:57.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-30T16:06:30.000Z (almost 4 years ago)
- Last Synced: 2024-04-23T00:22:38.991Z (about 2 years ago)
- Language: Lua
- Homepage: https://npmjs.com/@rbxts/ccdik-controller
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CCDIK Controller
Cyclic Coordinate Descent Inverse Kinematics Controller
- **[DevForum post](https://devforum.roblox.com/t/ccdikcontroller-alternate-inverse-kinematics-method-for-motor6d-rigs/968275)**
- **[Documentation](https://datlass.github.io/Rbx-CCDIK/)**
- **[This package's repository](https://github.com/tacheometry/rbxts-ccdik-controller)**
Installation
[](https://npmjs.org/package/@rbxts/ccdik-controller)
Run `npm i @rbxts/ccdik-controller` in your project directory.
Usage
```ts
import CCDIKController, { ConstraintsValue } from "@rbxts/ccdik-controller";
// optional constraints parameter
const constraints = new Map();
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](https://github.com/datlass/Rbx-CCDIK), and not in the repository of this package.