Difference between revisions of "LlTargetOmega test"

From Second Life Wiki
Jump to navigation Jump to search
(New page: //// float rate = 0.0; default { touch_start(integer total_number) { rate += 2.5; if (rate > 10.0) rate = 0.0; llOwnerSay("rate = " + (string) rate); ...)
 
Line 1: Line 1:
////
<pre>
Test 1:
1) Create two boxes near each other, one above the other.
2) Add the following "TargetOmega cycling" script to each box.
3) Link the boxes together.
4) Click each of the boxes several times to cycle through rotating, rotating at increased speeds, and stopping.
5) Attach the object while it's rotating and verify it continues to rotate.
6) Detach to inventory, then attach it again, and verify it rotates at the same speed.
7) Click each of the boxes several times to cycle through rotating, rotating at increased speeds, and stopping.
8) Drop the object on the ground while it's rotating and verify it continues to rotate.
 
//// TargetOmega cycling
float rate = 0.0;
float rate = 0.0;
default
default
{
{
     touch_start(integer total_number)
     touch_start(integer total_number)
     {
     {
Line 12: Line 23:
}
}
////
////
</pre>


Test:
Other tests to add:
1) Create two boxes near each other, one above the other.
Rotating around an axis of <0,0,0>
2) Add the above script to each box.
Physical llTargetOmega prims and objects.
3) Link the boxes together.
4) Click each of the boxes several times to cycle through rotating, rotating at increased speeds, and stopping.
5) Attach the object while it's rotating and verify it continues to rotate.
6) Detach to inventory, then attach it again, and verify it rotates at the same speed.
7) Click each of the boxes several times to cycle through rotating, rotating at increased speeds, and stopping.
8) Drop the object on the ground while it's rotating and verify it continues to rotate.

Revision as of 13:35, 6 February 2008

Test 1:
1) Create two boxes near each other, one above the other.
2) Add the following "TargetOmega cycling" script to each box.
3) Link the boxes together.
4) Click each of the boxes several times to cycle through rotating, rotating at increased speeds, and stopping.
5) Attach the object while it's rotating and verify it continues to rotate.
6) Detach to inventory, then attach it again, and verify it rotates at the same speed.
7) Click each of the boxes several times to cycle through rotating, rotating at increased speeds, and stopping.
8) Drop the object on the ground while it's rotating and verify it continues to rotate.

//// TargetOmega cycling
float rate = 0.0;
default
 {
    touch_start(integer total_number)
    {
        rate += 2.5;
        if (rate > 10.0) rate = 0.0;
        llOwnerSay("rate = " + (string) rate);
        llTargetOmega(<0,0,1>, rate, 0.1);
    }
}
////

Other tests to add: Rotating around an axis of <0,0,0> Physical llTargetOmega prims and objects.