mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Convert output of llAxes2Rot to F32.
This commit is contained in:
parent
dd1b7ed594
commit
13c7b0ef17
1 changed files with 1 additions and 1 deletions
|
@ -871,7 +871,7 @@ def llAxes2Rot(fwd, left, up):
|
|||
s = 0.5/r
|
||||
|
||||
# For the case of ix+jy+kz > 0, it can return an unnormalized quaternion
|
||||
return Quaternion((s*(left[2]-up[1]), s*(up[0]-fwd[2]), s*(fwd[1]-left[0]), r*0.5))
|
||||
return Quaternion(F32((s*(left[2]-up[1]), s*(up[0]-fwd[2]), s*(fwd[1]-left[0]), r*0.5)))
|
||||
|
||||
# Find a positive combo. LSL normalizes the result in these cases only, so we do the same.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue