Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to bind or attach a pmx model to the bones of a character model? #17

Closed
TopSea opened this issue Jan 26, 2024 · 1 comment
Assignees
Labels
good first issue Good for newcomers question Further information is requested

Comments

@TopSea
Copy link

TopSea commented Jan 26, 2024

Like holding a sword.

sword

@noname0310
Copy link
Owner

I think this is the simplest way

https://playground.babylonjs.com/#028YR6#7

const box = MeshBuilder.CreateBox("Box");
const rightWrist = modelMesh.metadata.skeleton.bones.find(bone => bone.name === "右手首");
box.parent = rightWrist;

@noname0310 noname0310 self-assigned this Jan 26, 2024
@noname0310 noname0310 added good first issue Good for newcomers question Further information is requested labels Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants