Skip to content

Commit 459e06e

Browse files
authored
Merge pull request #87 from SlimeYummy/issue/fix-tests
fix ik_two_bone_job tests
2 parents 3c71f51 + 9aa75f1 commit 459e06e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ik_two_bone_job.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ mod ik_two_bone_tests {
511511
Mat4::from_rotation_translation(Quat::from_axis_angle(Vec3::Z, core::f32::consts::FRAC_PI_2), Vec3::Y);
512512
let base_end = Mat4::from_translation(Vec3::X + Vec3::Y);
513513
let mid_axis = Vec3A::cross(
514-
Vec3A::from(base_start.col(3)) - Vec3A::from(base_mid.col(3)),
515-
Vec3A::from(base_end.col(3)) - Vec3A::from(base_mid.col(3)),
514+
Vec3A::from_vec4(base_start.col(3)) - Vec3A::from_vec4(base_mid.col(3)),
515+
Vec3A::from_vec4(base_end.col(3)) - Vec3A::from_vec4(base_mid.col(3)),
516516
);
517517

518518
let parents = [
@@ -585,8 +585,8 @@ mod ik_two_bone_tests {
585585
let mid = Mat4::from_rotation_translation(Quat::from_axis_angle(Vec3::Z, consts::FRAC_PI_2), Vec3::Y);
586586
let end = Mat4::from_translation(Vec3::X + Vec3::Y);
587587
let mid_axis = Vec3A::cross(
588-
Vec3A::from(start.col(3)) - Vec3A::from(mid.col(3)),
589-
Vec3A::from(end.col(3)) - Vec3A::from(mid.col(3)),
588+
Vec3A::from_vec4(start.col(3)) - Vec3A::from_vec4(mid.col(3)),
589+
Vec3A::from_vec4(end.col(3)) - Vec3A::from_vec4(mid.col(3)),
590590
);
591591

592592
let mut job = IKTwoBoneJob::default();
@@ -974,7 +974,7 @@ mod ik_two_bone_tests {
974974
let end = Mat4::from_translation(Vec3::X + Vec3::Y);
975975

976976
let mut job = IKTwoBoneJob::default();
977-
job.set_target(Vec3A::from(start.col(3)));
977+
job.set_target(Vec3A::from_vec4(start.col(3)));
978978
job.set_start_joint(start);
979979
job.set_mid_joint(mid);
980980
job.set_end_joint(end);

0 commit comments

Comments
 (0)