medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 18c4b2186ecdd4359f055660283972919f59cab0
parent db8d6679a990fc4ca843cfcbe27babd08461e438
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri Dec 30 23:28:10 +0200

Fix immediate_arrow draw direction

Diffstat:
immediate.cc | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/immediate.cc b/immediate.cc @@ -144,8 +144,7 @@ static m3 rotation_between( v3 from, v3 to ) { v3 axis = normalize( cross( from, to ) ); float cos_theta = dot( from, to ); - // TODO: why is this -????? - float sin_theta = -sqrtf( 1.0f - cos_theta * cos_theta ); + float sin_theta = sqrtf( 1.0f - cos_theta * cos_theta ); return about_with_sin_cos( axis, sin_theta, cos_theta ); }