Difference between revisions of "Talk:LlSetCameraEyeOffset"

From Second Life Wiki
Jump to: navigation, search
(What are the vectors relative to, in child prims?)
 
(What are the vectors relative to, in child prims?)
 
Line 2: Line 2:
  
 
Are the vectors in this and llSetCameraAtOffset relative to the object (the root prim), or the prim that the script is in?  Experiments suggest the latter (that it's relative to the prim), but I'm not entirely sure...  [[User:Dale Innis|Dale Innis]] 02:45, 30 August 2010 (UTC)
 
Are the vectors in this and llSetCameraAtOffset relative to the object (the root prim), or the prim that the script is in?  Experiments suggest the latter (that it's relative to the prim), but I'm not entirely sure...  [[User:Dale Innis|Dale Innis]] 02:45, 30 August 2010 (UTC)
 +
 +
Update: the situation seems to be very confusing!  Both of these functions set the relevant feature in the co-ordinate system of, and relative to, the prim that they are called from (I think).  But on the other hand the setting applies to every prim in the object!  So if I do llSetCameraEyeOffset(v) in prim A, and someone sits on a different prim B, their camera eye goes to v relative to A (not to B).  So it's like v is computed relative to A, and then the resulting absolute position applies for anyone who sits on any prim.  Or something... [[User:Dale Innis|Dale Innis]] 04:14, 30 August 2010 (UTC)

Latest revision as of 21:14, 29 August 2010

What are the vectors relative to, in child prims?

Are the vectors in this and llSetCameraAtOffset relative to the object (the root prim), or the prim that the script is in? Experiments suggest the latter (that it's relative to the prim), but I'm not entirely sure... Dale Innis 02:45, 30 August 2010 (UTC)

Update: the situation seems to be very confusing! Both of these functions set the relevant feature in the co-ordinate system of, and relative to, the prim that they are called from (I think). But on the other hand the setting applies to every prim in the object! So if I do llSetCameraEyeOffset(v) in prim A, and someone sits on a different prim B, their camera eye goes to v relative to A (not to B). So it's like v is computed relative to A, and then the resulting absolute position applies for anyone who sits on any prim. Or something... Dale Innis 04:14, 30 August 2010 (UTC)