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

[1.0] Importerを修正 #882

Merged
merged 3 commits into from
Apr 16, 2021
Merged

Conversation

ousttrue
Copy link
Contributor

  • VRM部分(SpringBone, Constraint)で座標変換が無かった

@ousttrue ousttrue requested a review from Santarh April 16, 2021 10:16
Copy link
Contributor

@Santarh Santarh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

よいけど一点だけ

var colliderNodeIndex = spring.Colliders[0];

Assert.True(UniGLTF.Extensions.VRMC_node_collider.GltfDeserializer.TryGet(parser1.GLTF.nodes[colliderNodeIndex].extensions, out UniGLTF.Extensions.VRMC_node_collider.VRMC_node_collider colliderGroup));
Assert.AreEqual(-VALUE, colliderGroup.Shapes[0].Sphere.Offset[0]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ヨシ!

直感的ではないが、VRM 0.x の事情と、1.0 への変換を色々やると結局考慮すると X だけが反転する、とのこと。

ただ Test としては Y と Z の値の Assert もやっといたほうがよさそう

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ousttrue ousttrue requested a review from Santarh April 16, 2021 10:31
// x軸だけが反転する
Assert.AreEqual(-VALUE.x, colliderGroup.Shapes[0].Sphere.Offset[0]);
Assert.AreEqual(VALUE.y, colliderGroup.Shapes[0].Sphere.Offset[1]);
Assert.AreEqual(VALUE.z, colliderGroup.Shapes[0].Sphere.Offset[2]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ヨシ!

@ousttrue ousttrue merged commit 61314cd into vrm-c:master Apr 16, 2021
@ousttrue ousttrue deleted the fix10/fix_collider_offset branch May 17, 2021 05:22
@ousttrue ousttrue added the 1.0 label May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants