How to implement skeletal position animation and why can original position animation also be formed into animation
Thank you, Babylon team
https://playground.babylonjs.com/#XAV73D#6
Couple of things. Please see playground: https://playground.babylonjs.com/#XAV73D#10
N.B. Usually, in a Mixamo rig/skeleton, you want to animate rotation, not position. I changed that. If you nonetheless want to animate position, you probably have to change to “BABYLON.Animation.ANIMATIONTYPE_VECTOR3”
https://playground.babylonjs.com/#XAV73D#13
Hello, I changed it to a positional animation, but the animation effect is still a rotated state effect
Oh, I see. This is weird. Is this intentional behaviour (@all)? Does it play the rotation from the animationGroup or so?
Anyway, to stop the rotation, you can do something like https://playground.babylonjs.com/#XAV73D#14
The second parameter of the Animation
constructor must be the name of a property, not of a function. If you want to use setAbsolutePosition
, I think you will have to make the animation yourself, not using BABYLON.Animation
.
https://playground.babylonjs.com/#XAV73D#16
If I use the position attribute, all the bones are lost. What is the reason for this
Position is a Vector3, not a quaternion (see line 63):
Thanks