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

VRM 0系でFastSpringBoneを使用した際にVRMの最親のゲームオブジェクトにFastSpringBoneが追従しない #2047

Closed
FujiSunflower opened this issue Apr 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@FujiSunflower
Copy link
Contributor

環境情報

  • UniVRM version: UniVRM-0.110.0_3f7d
  • Unity version: Unity-2020.3.43f1
  • OS: Windows 11

バグについて

バグの内容

VRM 0系でFastSpringBoneを使用した際にVRMの最親のゲームオブジェクトにFastSpringBoneが追従しない

ConsoleLog

image

スクリーンショット

FastSpringBoneに変換するスクリプトを実行して、VRMの最親のゲームオブジェクトを移動させる。
なおHumanoidBoneのHipsボーンには追従した。
image

再現方法

FastSpringBoneに変換するスクリプトをVRoid Studio 1.22.0 のSample Avatar Bで実行した。

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using VRM;

public class TestFast : MonoBehaviour
{
    // Start is called before the first frame update
    async void Start()
    {
        Fast();
    }
    async void Fast()
    {
        await FastSpringBoneReplacer.ReplaceAsync(gameObject);
    }
    // Update is called once per frame
    void Update()
    {
        
    }
}

@FujiSunflower FujiSunflower added the bug Something isn't working label Apr 20, 2023
@FujiSunflower
Copy link
Contributor Author

VRM Spring Bone のCenterが設定されている場合に発生するようです。
image
image
VRM Spring Bone のCenterが設定されていない場合は最親のゲームオブジェクトに追従します。
image
image

@FujiSunflower
Copy link
Contributor Author

いくつかのVRMで試したところ、VRM 0系でのFastSpringBoneのCenterの仕様らしいと理解したのでCloseします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant