Difference between revisions of "Talk:Chatbot"

From Second Life Wiki
Jump to navigation Jump to search
(log the bug of the rotation of an object is not the direction it faces)
(solve turn the East face to the Sun -- llSetLocalRot(llRotBetween(<1, 0, 0>, llGetSunDirection()));)
Line 2: Line 2:


* The rotation of an object is not the direction it faces
* The rotation of an object is not the direction it faces
<pre>
/7 llSetLocalRot(llRotBetween(<1, 0, 0>, llGetSunDirection())); // turn the East face to the Sun
</pre>


<pre>
<pre>

Revision as of 21:22, 8 September 2007

Bugs

  • The rotation of an object is not the direction it faces
/7 llSetLocalRot(llRotBetween(<1, 0, 0>, llGetSunDirection())); // turn the East face to the Sun
/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
  • Negative operands
/7 llSetLocalRot(llEuler2Rot(<-1.570796, 0, 0>)); // rotates half a turn anticlockwise

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

We could/ should soon add yet a few more concise 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