Skip to content

Commit 91f98ea

Browse files
committed
Changed degrees->radians in RotationBetweenVectors
1 parent e8b3be1 commit 91f98ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/quaternion_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ quat RotationBetweenVectors(vec3 start, vec3 dest){
2626
rotationAxis = cross(vec3(1.0f, 0.0f, 0.0f), start);
2727

2828
rotationAxis = normalize(rotationAxis);
29-
return angleAxis(180.0f, rotationAxis);
29+
return angleAxis(glm::radians(180.0f), rotationAxis);
3030
}
3131

3232
// Implementation from Stan Melax's Game Programming Gems 1 article

0 commit comments

Comments
 (0)