Skip to content

Commit

Permalink
Tweaks to avatar constraints for IK.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barinzaya committed Jun 2, 2023
1 parent 5f5b285 commit cb64b92
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions remote-wheel-sender/src/vmc/bone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,10 @@ impl Limb {
Limb::LeftHand => &[
AngularConstraint::None,
AngularConstraint::Euler(
EulerRot::YZX,
EulerRot::YXZ,
(-1.59, 2.62), // Yaw; -90 to 150 deg
(-1.40, 1.59), // Pitch; -80 to 90 deg
(-1.04, 1.04), // Roll; -60 to 60 deg
(-1.40, 1.59), // Pitch; -80 to 90 deg
),
AngularConstraint::Hinge(Vec3::Y, (0.0, 2.88)), // 0 to 165 deg
AngularConstraint::None,
Expand All @@ -496,12 +496,11 @@ impl Limb {
Limb::RightHand => &[
AngularConstraint::None,
AngularConstraint::Euler(
EulerRot::YZX,
EulerRot::YXZ,
(-2.62, 1.59), // Yaw; -150 to 90 deg
(-1.40, 1.59), // Pitch; -80 to 90 deg
(-1.04, 1.04), // Roll; -60 to 60 deg
(-1.40, 1.59), // Pitch; -80 to 90 deg
),
AngularConstraint::None,
AngularConstraint::Hinge(Vec3::NEG_Y, (0.0, 2.88)), // 0 to 165 deg
AngularConstraint::None,
],
Expand Down

0 comments on commit cb64b92

Please sign in to comment.