![]() Registered Member ![]()
|
Hi !
There are two bugs in Quaternion::setFromTwoVectors : First is a missing return in the test for dot == 1 and the second is the case where dot == -1... In this second case, I just try to set the quaternion between from and UnitX or UnitY Hope this helps. Bye, Ben.
Last edited by ggael on Tue Feb 17, 2009 9:53 am, edited 1 time in total.
|
![]() Registered Member ![]()
|
Proposed new implementation :
|
![]() Moderator ![]()
|
hi,
thanks a lot for the patch ! (applied in rev 927280) |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell