@@ -63,7 +63,7 @@ public void TestTwoBodies()
63
63
rb1 . velocity = new Vector3 ( 2 , 0 , 0 ) ;
64
64
65
65
Assert . AreEqual ( rb1 . position , poseExtractor . GetPoseAt ( 0 ) . position ) ;
66
- Assert . AreEqual ( rb1 . rotation , poseExtractor . GetPoseAt ( 0 ) . rotation ) ;
66
+ Assert . IsTrue ( rb1 . rotation == poseExtractor . GetPoseAt ( 0 ) . rotation ) ;
67
67
Assert . AreEqual ( rb1 . velocity , poseExtractor . GetLinearVelocityAt ( 0 ) ) ;
68
68
}
69
69
@@ -103,7 +103,7 @@ public void TestTwoBodiesVirtualRoot()
103
103
virtualRoot . transform . rotation = virtualRootRot ;
104
104
105
105
Assert . AreEqual ( virtualRootPos , poseExtractor . GetPoseAt ( 0 ) . position ) ;
106
- Assert . AreEqual ( virtualRootRot , poseExtractor . GetPoseAt ( 0 ) . rotation ) ;
106
+ Assert . IsTrue ( virtualRootRot == poseExtractor . GetPoseAt ( 0 ) . rotation ) ;
107
107
Assert . AreEqual ( Vector3 . zero , poseExtractor . GetLinearVelocityAt ( 0 ) ) ;
108
108
109
109
// Same as above test, but using index 1
@@ -112,7 +112,7 @@ public void TestTwoBodiesVirtualRoot()
112
112
rb1 . velocity = new Vector3 ( 2 , 0 , 0 ) ;
113
113
114
114
Assert . AreEqual ( rb1 . position , poseExtractor . GetPoseAt ( 1 ) . position ) ;
115
- Assert . AreEqual ( rb1 . rotation , poseExtractor . GetPoseAt ( 1 ) . rotation ) ;
115
+ Assert . IsTrue ( rb1 . rotation == poseExtractor . GetPoseAt ( 1 ) . rotation ) ;
116
116
Assert . AreEqual ( rb1 . velocity , poseExtractor . GetLinearVelocityAt ( 1 ) ) ;
117
117
}
118
118
}
0 commit comments