Difference between revisions of "Talk:LlRotBetween"
Jump to navigation
Jump to search
(→Replacement: new section) |
|||
Line 5: | Line 5: | ||
::It worked! [[User:Pete Olihenge|Pete Olihenge]] 19:15, 13 April 2010 (UTC) | ::It worked! [[User:Pete Olihenge|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 | |||
[[User:Dora Gustafson|Dora Gustafson]] 09:10, 21 December 2012 (PST) |
Revision as of 09:10, 21 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)