Sit and position

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Robot: Cosmetic changes)
Line 1: Line 1:
== Sit and position ==
+
== Sit and position ==
  
 
Just drop into an object and play with the vector rot stuff and llsitTarget till happy :-)  
 
Just drop into an object and play with the vector rot stuff and llsitTarget till happy :-)  
Line 18: Line 18:
  
 
</source>
 
</source>
 
  
 
[[Category:Scripts]]
 
[[Category:Scripts]]

Revision as of 21:13, 3 March 2012

Sit and position

Just drop into an object and play with the vector rot stuff and llsitTarget till happy :-)

default{
 
state_entry()
        {
         llSetText("sit here ", <0,1,0>,1);
         llSay(0,"started");
         vector rot=<180.0, -180.0, 0.0>*DEG_TO_RAD;
         rotation finalrot=llEuler2Rot(rot);
         llSitTarget(<-0.35, 0.0, 0.75>,finalrot);
        }
}
Personal tools
General
About This Wiki