User:Dora Gustafson/llRotBetween alternatives

From Second Life Wiki
< User:Dora Gustafson
Revision as of 11:36, 23 December 2012 by Dora Gustafson (talk | contribs) (essay over llRotBetween)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

llRotBetween, some alternatives and considerations

Under construction

Scope

Four scripts are covered, They are

  1. llRotBetween( vector a, vector b); // The built in function
  2. RotBetween( vector a, vector b); // The replacement outlined in the wiki
  3. rotV2V( vector a, vector b); // The shortest replacement
  4. rotbetween( vector a, vector b); // Using a Vector to rotation function
Tests

First the rotation solutions were compared and they didn't compare at all. Testing rotations is a bad idea since there is no single solution, but an infinite number of solutions. All 4 functions provide different valid solutions.