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] Re-introduce springbone center #983

Merged
merged 8 commits into from
Jun 9, 2022
Merged

[1.0] Re-introduce springbone center #983

merged 8 commits into from
Jun 9, 2022

Conversation

0b5vr
Copy link
Contributor

@0b5vr 0b5vr commented Jun 2, 2022

Description

@0b5vr 0b5vr added bug Something isn't working enhancement New feature or request VRM 1.0 labels Jun 2, 2022
@0b5vr 0b5vr added this to the VRM 1.0 milestone Jun 2, 2022
@0b5vr 0b5vr requested a review from nyamadan June 2, 2022 08:23
@0b5vr 0b5vr self-assigned this Jun 2, 2022
0b5vr added 2 commits June 2, 2022 17:41
An attempt to address the temporary github actions degradation
See: actions/cache#811
@0b5vr 0b5vr marked this pull request as ready for review June 2, 2022 09:32
@@ -197,8 +168,6 @@ export class VRMSpringBoneJoint {
*/
public setInitState(): void {
// remember initial position of itself
this._centerSpacePosition.setFromMatrixPosition(this.bone.matrixWorld);
Copy link
Contributor

Choose a reason for hiding this comment

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

centerがVRMに含まれるようになったので最初に記録しておくことが不要となった。

.normalize()
.multiplyScalar(this._centerSpaceBoneLength)
.add(this._centerSpacePosition);
_nextTail.sub(_worldSpacePosition).normalize().multiplyScalar(this._worldSpaceBoneLength).add(_worldSpacePosition);
Copy link
Contributor

Choose a reason for hiding this comment

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

worldSpaceに戻したのでworldSpacePositionを減算するようになった。

Copy link
Contributor

@nyamadan nyamadan left a comment

Choose a reason for hiding this comment

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

見ました。
worldSpace、centerSpaceの変換大変ですね…。

@0b5vr 0b5vr merged commit 51f4d78 into 1.0 Jun 9, 2022
@0b5vr 0b5vr deleted the 1.0-springbone-center branch June 9, 2022 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request VRM 1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants