Difference between revisions of "Talk:Chatbot"

From Second Life Wiki
Jump to navigation Jump to search
(solve turn the East face to the Sun -- llSetLocalRot(llRotBetween(<1, 0, 0>, llGetSunDirection()));)
m (discard bugs now closed in the Chatbot article: correctly explain how to face the sun, also tweak to understand negative literal floats & integers)
Line 1: Line 1:
== Bugs ==
== Bugs ==


* The rotation of an object is not the direction it faces
This Chatbot script works for some of ... how about you? If not, why not?
 
<pre>
/7 llSetLocalRot(llRotBetween(<1, 0, 0>, llGetSunDirection())); // turn the East face to the Sun
</pre>
 
<pre>
/7 llSetLocalRot(llEuler2Rot(<0, 0, 0>)); // sets ZERO_ROTATION
/7 llSetLocalRot(llEuler2Rot(<PI_BY_TWO, 0, 0>)); // rotates half a turn clockwise about the X = East/West axis, does not face the East
/7 llSetLocalRot(llEuler2Rot(llGetSunDirection())); // rotates in relation to the Sun (and the opposing Moon), but does not face the Sun
</pre>
 
* Negative operands
 
<pre>
/7 llSetLocalRot(llEuler2Rot(<-1.570796, 0, 0>)); // rotates half a turn anticlockwise
</pre>
 
Including "+" and "-" among the spacers interferes with their use as postive/ negative signs for float/ integer literals, whoops ... until/ unless we add "+" and "-" as monadic prefix arithmetic operators. Meanwhile, "+" and "-" shouldn't be there.


== Wishes ==
== Wishes ==


We could/ should soon add yet a few more concise demoes, such as:
We could/ should soon add yet a few more concise tutorial demoes, such as:


* discover the time of day -- say if World > Force Sun > Region Default would show sunrise, noon, sunset, midnight, or what
* discover the time of day -- say if World > Force Sun > Region Default would show sunrise, noon, sunset, midnight, or what


* move to owner and stop moving
* move to owner and stop moving

Revision as of 22:23, 8 September 2007

Bugs

This Chatbot script works for some of ... how about you? If not, why not?

Wishes

We could/ should soon add yet a few more concise tutorial demoes, such as:

  • discover the time of day -- say if World > Force Sun > Region Default would show sunrise, noon, sunset, midnight, or what
  • move to owner and stop moving