quakeforge/libs
Bill Currie 62f3e1f428 [util] Calculate quaternion to rotate between two vectors
The calculation fails (produces NaN) if the vectors are anti-parallel,
but works for all other combinations. I came up with this implementation
when I discovered Unity's Quaternion.FromToRotation could did not work
with very small angles. This implementation will produce a usable
quaternion below 0.00255 degrees (though it will be slightly larger than
unit). Unity's failed such that I could see KSP's skybox snap while it
rotated around my test vessel.
2020-12-21 14:14:10 +09:00
..
audio Merge branch 'master' into vulkan 2020-06-25 14:03:52 +09:00
client [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
console Merge branch 'master' into vulkan 2020-06-25 14:03:52 +09:00
gamecode [gamecode] Add a comment about returning temp strings 2020-07-05 16:53:35 +09:00
gib [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
image [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
models [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
net Merge branch 'master' into vulkan 2020-06-25 14:03:52 +09:00
qw [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
ruamoko [ruamoko] Fix incorrect clearing of dtables 2020-08-17 13:58:35 +09:00
util [util] Calculate quaternion to rotate between two vectors 2020-12-21 14:14:10 +09:00
video [build] Support silent rules for sed 2020-07-17 01:20:02 +09:00
Makemodule.am [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00