public void Initialize(FaceTracker faceTracker, OpenCVFacePose openCvFacePose, IVRMLoadable vrmLoadable) { _faceTracker = faceTracker; _faceRotToEuler = new FaceRotToEuler(openCvFacePose); vrmLoadable.VrmLoaded += info => { var animator = info.animator; _neck = animator.GetBoneTransform(HumanBodyBones.Neck); _head = animator.GetBoneTransform(HumanBodyBones.Head); _hasNeck = (_neck != null); _hasModel = true; }; vrmLoadable.VrmDisposing += () => { _hasModel = false; _hasNeck = false; _neck = null; _head = null; }; }
public FaceRotToEuler(OpenCVFacePose facePose) { _facePose = facePose; }