Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Bug: Rotation w not accessable

Madox Kobayashi
Madox Labs R&D
Join date: 28 Jun 2003
Posts: 402
08-05-2003 19:03
Try this code out:

CODE

float x = 0.0;
rotation rot;

rot.w = x;


Error: Use of vector or quaternion method on incorrect type

X, Y and Z members all are accessable fine.
The only way to set w specifically is with:

direction = <direction.x,direction.y,direction.z,value>;

which is pointless because you can never read back the value of w.
_____________________
Madox Kobayashi

Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
08-05-2003 20:37
it is .s if i remember correctly.
_____________________
i've got nothing. ;)
Jake Cellardoor
CHM builder
Join date: 27 Mar 2003
Posts: 528
08-05-2003 22:03
Yes, the fourth element is s.
Madox Kobayashi
Madox Labs R&D
Join date: 28 Jun 2003
Posts: 402
08-05-2003 22:24
Ah I see I'm a victim of LL documentation then :p
_____________________
Madox Kobayashi

Jake Cellardoor
CHM builder
Join date: 27 Mar 2003
Posts: 528
08-05-2003 22:39
FYI, the most recent version of the .CHM file has this correction.