Sit and position

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: == Sit and position == Just drop into an object and play with the vector rot stuff and llsitTarget till happy :-) <source lang="lsl"> default{ state_entry() { l...)
 
m (Indentation)
 
(2 intermediate revisions by 2 users not shown)
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&nbsp;:-)  
 
Just drop into an object and play with the vector rot stuff and llsitTarget till happy&nbsp;:-)  
  
 
<source lang="lsl">
 
<source lang="lsl">
 
+
default
default{
+
{
 
+
    state_entry()
state_entry()
+
    {
        {
+
        llSetText("sit here", <0.0, 1.0, 0.0>, 1.0);
        llSetText("sit here ", <0,1,0>,1);
+
        llSay(PUBLIC_CHANNEL, "started");
        llSay(0,"started");
+
        vector rot=<180.0, -180.0, 0.0> * DEG_TO_RAD;
        vector rot=<180.0, -180.0, 0.0>*DEG_TO_RAD;
+
        rotation finalrot = llEuler2Rot(rot);
        rotation finalrot=llEuler2Rot(rot);
+
        llSitTarget(<-0.35, 0.0, 0.75>, finalrot);
        llSitTarget(<-0.35, 0.0, 0.75>,finalrot);
+
    }
        }
+
 
}
 
}
 +
</source>
  
</source>
+
[[Category:Scripts]]

Latest revision as of 07:31, 22 September 2020

[edit] 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.0, 1.0, 0.0>, 1.0);
        llSay(PUBLIC_CHANNEL, "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