vrm-helper
v1.1.2
Published
VRM Helper for Three.js
Downloads
7
Readme
VRM Helper
Helper package used for animating VRM models.
How to use
npm i vrm-helper
IKHandler
IKHandler
based on CCDIKSolver
Handles IKHandler for humanoid models with IK settings.
import { IKHandler } from 'vrm-helper';
// enable IK on a bone
const handler = IKHandler.get(vrm);
handler.getAndEnableIK(name);
// update IK each frame in three js
useFrame(()=> {
handler.update();
});
convert & toOffset
convert
vmd from mmd-parser
to animations with toOffset
offset of vrm.
import { toOffset, convert } from 'vrm-helper';
import { Parser } from "mmd-parser";
const vmd = new Parser().parseVmd(bytes);
const animation = convert(vmd, toOffset(vrm));
Resources
IKHandler
based on CCDIKSolver
convert
and toOffset
based on vrm-dance-viewer