D
D
Dimazsever2019-07-14 20:37:26
Game development
Dimazsever, 2019-07-14 20:37:26

How to manage bones in Babylon.js?

On the website of the engine there is a demo with the control of the bones of the 3d model of the game character:
If the demo does not load, turn on the VPN.
The problem is the following. When I load another model with bones, nothing happens. I thought it was because the 3d model being loaded is in .glb format, while the model in the demo is in .babylon format.
I tried to output some bone to the browser console to make sure that the engine sees the bones. Yes. The engine sees the model bones in glb format. But, for some reason, he does not want to rotate them, move them, and so on. I took a link to the glb model from this demo: To increase the airplane model when loading into the first demo, change the parameters:
console.log(skeleton.bones[1]);

mesh.scaling = new BABYLON.Vector3(20.1,20.1,20.1);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question