Difference between revisions of "Talk:LlRotBetween"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 25: Line 25:


:There was a reason for not doing "/ aabb" on the vector is that in the real world it is more costly. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 21:31, 23 December 2012 (PST)
:There was a reason for not doing "/ aabb" on the vector is that in the real world it is more costly. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 21:31, 23 December 2012 (PST)
::Yes, I've had it explained to me why it results in less accuracy. Shame tho' !  [[User:Omei Qunhua|Omei Qunhua]] 07:07, 24 December 2012 (PST)

Revision as of 07:07, 24 December 2012

cat2 = Rotation

Although this page appears to belong to the category "Rotation", it doesn't show up on the Category:LSL Rotation page. How's it done? Pete Olihenge 10:02, 13 April 2010 (UTC)

The wiki engine has issues with categories (as in the list of pages in them becomes corrupted). Just do a small edit to llRotBetween (move a couple parameters around or add a space to the end of a line) and it will trick it into refreshing. -- Strife (talk|contribs) 12:23, 13 April 2010 (UTC)
It worked! Pete Olihenge 19:15, 13 April 2010 (UTC)

Replacement

Replacement doesn't compile, the error is in this line

vector c = < c.x = (a.y * b.z - a.z * b.y) / aabb,
             c.y = (a.z * b.x - a.x * b.z) / aabb,
             c.z = (a.x * b.y - a.y * b.x) / aabb >; // normalized crossproduct of the arguments

This works better:

vector c = < (a.y * b.z - a.z * b.y) / aabb,
             (a.z * b.x - a.x * b.z) / aabb,
             (a.x * b.y - a.y * b.x) / aabb >; // normalized crossproduct of the arguments

Dora Gustafson 09:10, 21 December 2012 (PST)

Or this:

vector c = <a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x> / aabb;

Omei Qunhua 15:37, 21 December 2012 (PST)

There was a reason for not doing "/ aabb" on the vector is that in the real world it is more costly. -- Strife (talk|contribs) 21:31, 23 December 2012 (PST)
Yes, I've had it explained to me why it results in less accuracy. Shame tho' ! Omei Qunhua 07:07, 24 December 2012 (PST)